-
-
Notifications
You must be signed in to change notification settings - Fork 138
/
Copy path__init__.py
117 lines (95 loc) · 3.39 KB
/
__init__.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
"""GraphQL Utilities
The :mod:`graphql.utilities` package contains common useful computations to use with
the GraphQL language and type objects.
"""
# Produce the GraphQL query recommended for a full schema introspection.
from .get_introspection_query import get_introspection_query, IntrospectionQuery
# Get the target Operation from a Document.
from .get_operation_ast import get_operation_ast
# Convert a GraphQLSchema to an IntrospectionQuery.
from .introspection_from_schema import introspection_from_schema
# Build a GraphQLSchema from an introspection result.
from .build_client_schema import build_client_schema
# Build a GraphQLSchema from GraphQL Schema language.
from .build_ast_schema import build_ast_schema, build_schema
# Extend an existing GraphQLSchema from a parsed GraphQL Schema language AST.
from .extend_schema import extend_schema
# Sort a GraphQLSchema.
from .lexicographic_sort_schema import lexicographic_sort_schema
# Print a GraphQLSchema to GraphQL Schema language.
from .print_schema import (
print_schema,
print_type,
print_directive,
print_introspection_schema,
print_value, # deprecated
)
# Create a GraphQLType from a GraphQL language AST.
from .type_from_ast import type_from_ast
# Convert a language AST to a dictionary.
from .ast_to_dict import ast_to_dict
# Create a Python value from a GraphQL language AST with a type.
from .value_from_ast import value_from_ast
# Create a Python value from a GraphQL language AST without a type.
from .value_from_ast_untyped import value_from_ast_untyped
# Create a GraphQL language AST from a Python value.
from .ast_from_value import ast_from_value
# A helper to use within recursive-descent visitors which need to be aware of
# the GraphQL type system
from .type_info import TypeInfo, TypeInfoVisitor
# Coerce a Python value to a GraphQL type, or produce errors.
from .coerce_input_value import coerce_input_value
# Concatenate multiple ASTs together.
from .concat_ast import concat_ast
# Separate an AST into an AST per Operation.
from .separate_operations import separate_operations
# Strip characters that are not significant to the validity or execution
# of a GraphQL document.
from .strip_ignored_characters import strip_ignored_characters
# Comparators for types
from .type_comparators import is_equal_type, is_type_sub_type_of, do_types_overlap
# Compare two GraphQLSchemas and detect breaking changes.
from .find_breaking_changes import (
BreakingChange,
BreakingChangeType,
DangerousChange,
DangerousChangeType,
find_breaking_changes,
find_dangerous_changes,
)
__all__ = [
"BreakingChange",
"BreakingChangeType",
"DangerousChange",
"DangerousChangeType",
"IntrospectionQuery",
"TypeInfo",
"TypeInfoVisitor",
"ast_from_value",
"ast_to_dict",
"build_ast_schema",
"build_client_schema",
"build_schema",
"coerce_input_value",
"concat_ast",
"do_types_overlap",
"extend_schema",
"find_breaking_changes",
"find_dangerous_changes",
"get_introspection_query",
"get_operation_ast",
"introspection_from_schema",
"is_equal_type",
"is_type_sub_type_of",
"lexicographic_sort_schema",
"print_directive",
"print_introspection_schema",
"print_schema",
"print_type",
"print_value",
"separate_operations",
"strip_ignored_characters",
"type_from_ast",
"value_from_ast",
"value_from_ast_untyped",
]