Coverage for src/lexigram/graphql/schema/__init__.py: 100%

6 statements  

« prev     ^ index     » next       coverage.py v7.15.4, created at 2026-08-25 04:37 +0800

1"""Schema module. 

2 

3This module provides schema building utilities, decorators, 

4type definitions, and documentation generation for GraphQL schemas. 

5""" 

6 

7from __future__ import annotations 

8 

9from lexigram.graphql.schema.builder import ( 

10 Schema, 

11 SchemaBuilderProtocol, 

12 create_schema, 

13) 

14from lexigram.graphql.schema.decorators import ( 

15 field, 

16 mutation, 

17 query, 

18 resolver, 

19 subscription, 

20) 

21from lexigram.graphql.schema.documentation import ( 

22 FieldDoc, 

23 SchemaDoc, 

24 SchemaDocumentationGenerator, 

25 TypeDoc, 

26 generate_schema_docs, 

27) 

28from lexigram.graphql.schema.types import ( 

29 EnumType, 

30 InputType, 

31 InterfaceType, 

32 ObjectType, 

33 ScalarType, 

34 union_type, 

35) 

36 

37__all__ = [ 

38 "EnumType", 

39 "FieldDoc", 

40 "InputType", 

41 "InterfaceType", 

42 # Types 

43 "ObjectType", 

44 "ScalarType", 

45 # Builder 

46 "Schema", 

47 "SchemaBuilderProtocol", 

48 "SchemaDoc", 

49 # Documentation 

50 "SchemaDocumentationGenerator", 

51 "TypeDoc", 

52 "create_schema", 

53 "field", 

54 "generate_schema_docs", 

55 "mutation", 

56 # Decorators 

57 "query", 

58 "resolver", 

59 "subscription", 

60 "union_type", 

61]