Debian Codegraph @

docs/modules/utilities.rst

raw
1 Utilities
2 =========
3
4 .. currentmodule:: graphql.utilities
5
6 .. automodule:: graphql.utilities
7 :no-members:
8 :no-inherited-members:
9
10 The GraphQL query recommended for a full schema introspection:
11
12 .. autofunction:: get_introspection_query
13
14 .. autoclass:: IntrospectionQuery
15 :no-inherited-members:
16
17 Get the target Operation from a Document:
18
19 .. autofunction:: get_operation_ast
20
21 Get the Type for the target Operation AST:
22
23 .. autofunction:: get_operation_root_type
24
25 Convert a GraphQLSchema to an IntrospectionQuery:
26
27 .. autofunction:: introspection_from_schema
28
29 Build a GraphQLSchema from an introspection result:
30
31 .. autofunction:: build_client_schema
32
33 Build a GraphQLSchema from GraphQL Schema language:
34
35 .. autofunction:: build_ast_schema
36 .. autofunction:: build_schema
37
38 Extend an existing GraphQLSchema from a parsed GraphQL Schema language AST:
39
40 .. autofunction:: extend_schema
41
42 Sort a GraphQLSchema:
43
44 .. autofunction:: lexicographic_sort_schema
45
46 Print a GraphQLSchema to GraphQL Schema language:
47
48 .. autofunction:: print_introspection_schema
49 .. autofunction:: print_schema
50 .. autofunction:: print_type
51
52 Create a GraphQLType from a GraphQL language AST:
53
54 .. autofunction:: type_from_ast
55
56 Convert a language AST to a dictionary:
57
58 .. autofunction:: ast_to_dict
59
60 Create a Python value from a GraphQL language AST with a type:
61
62 .. autofunction:: value_from_ast
63
64 Create a Python value from a GraphQL language AST without a type:
65
66 .. autofunction:: value_from_ast_untyped
67
68 Create a GraphQL language AST from a Python value:
69
70 .. autofunction:: ast_from_value
71
72 A helper to use within recursive-descent visitors which need to be aware of the GraphQL
73 type system:
74
75 .. autoclass:: TypeInfo
76 .. autoclass:: TypeInfoVisitor
77
78 Coerce a Python value to a GraphQL type, or produce errors:
79
80 .. autofunction:: coerce_input_value
81
82 Concatenate multiple ASTs together:
83
84 .. autofunction:: concat_ast
85
86 Separate an AST into an AST per Operation:
87
88 .. autofunction:: separate_operations
89
90 Strip characters that are not significant to the validity or execution
91 of a GraphQL document:
92
93 .. autofunction:: strip_ignored_characters
94
95 Comparators for types:
96
97 .. autofunction:: is_equal_type
98 .. autofunction:: is_type_sub_type_of
99 .. autofunction:: do_types_overlap
100
101 Assert that a string is a valid GraphQL name:
102
103 .. autofunction:: assert_valid_name
104 .. autofunction:: is_valid_name_error
105
106 Compare two GraphQLSchemas and detect breaking changes:
107
108 .. autofunction:: find_breaking_changes
109 .. autofunction:: find_dangerous_changes
110
111 .. autoclass:: BreakingChange
112 .. autoclass:: BreakingChangeType
113 .. autoclass:: DangerousChange
114 .. autoclass:: DangerousChangeType
115
116 Resolve a schema coordinate to the schema element it refers to:
117
118 .. autofunction:: resolve_schema_coordinate
119 .. autofunction:: resolve_ast_schema_coordinate
120
121 .. autoclass:: ResolvedNamedType
122 .. autoclass:: ResolvedField
123 .. autoclass:: ResolvedInputField
124 .. autoclass:: ResolvedEnumValue
125 .. autoclass:: ResolvedFieldArgument
126 .. autoclass:: ResolvedDirective
127 .. autoclass:: ResolvedDirectiveArgument
128 .. autoclass:: ResolvedSchemaElement