| 1 |
Type |
| 2 |
==== |
| 3 |
|
| 4 |
.. currentmodule:: graphql.type |
| 5 |
|
| 6 |
.. automodule:: graphql.type |
| 7 |
:no-members: |
| 8 |
:no-inherited-members: |
| 9 |
|
| 10 |
Definition |
| 11 |
---------- |
| 12 |
|
| 13 |
Predicates |
| 14 |
^^^^^^^^^^ |
| 15 |
|
| 16 |
.. autofunction:: is_composite_type |
| 17 |
.. autofunction:: is_enum_type |
| 18 |
.. autofunction:: is_input_object_type |
| 19 |
.. autofunction:: is_input_type |
| 20 |
.. autofunction:: is_interface_type |
| 21 |
.. autofunction:: is_leaf_type |
| 22 |
.. autofunction:: is_list_type |
| 23 |
.. autofunction:: is_named_type |
| 24 |
.. autofunction:: is_non_null_type |
| 25 |
.. autofunction:: is_nullable_type |
| 26 |
.. autofunction:: is_object_type |
| 27 |
.. autofunction:: is_output_type |
| 28 |
.. autofunction:: is_scalar_type |
| 29 |
.. autofunction:: is_type |
| 30 |
.. autofunction:: is_union_type |
| 31 |
.. autofunction:: is_wrapping_type |
| 32 |
|
| 33 |
Assertions |
| 34 |
^^^^^^^^^^ |
| 35 |
|
| 36 |
.. autofunction:: assert_abstract_type |
| 37 |
.. autofunction:: assert_composite_type |
| 38 |
.. autofunction:: assert_enum_type |
| 39 |
.. autofunction:: assert_input_object_type |
| 40 |
.. autofunction:: assert_input_type |
| 41 |
.. autofunction:: assert_interface_type |
| 42 |
.. autofunction:: assert_leaf_type |
| 43 |
.. autofunction:: assert_list_type |
| 44 |
.. autofunction:: assert_named_type |
| 45 |
.. autofunction:: assert_non_null_type |
| 46 |
.. autofunction:: assert_nullable_type |
| 47 |
.. autofunction:: assert_object_type |
| 48 |
.. autofunction:: assert_output_type |
| 49 |
.. autofunction:: assert_scalar_type |
| 50 |
.. autofunction:: assert_type |
| 51 |
.. autofunction:: assert_union_type |
| 52 |
.. autofunction:: assert_wrapping_type |
| 53 |
|
| 54 |
Un-modifiers |
| 55 |
^^^^^^^^^^^^ |
| 56 |
|
| 57 |
.. autofunction:: get_nullable_type |
| 58 |
.. autofunction:: get_named_type |
| 59 |
|
| 60 |
Definitions |
| 61 |
^^^^^^^^^^^ |
| 62 |
|
| 63 |
.. autoclass:: GraphQLEnumType |
| 64 |
.. autoclass:: GraphQLInputObjectType |
| 65 |
.. autoclass:: GraphQLInterfaceType |
| 66 |
.. autoclass:: GraphQLObjectType |
| 67 |
.. autoclass:: GraphQLScalarType |
| 68 |
.. autoclass:: GraphQLUnionType |
| 69 |
|
| 70 |
Type Wrappers |
| 71 |
^^^^^^^^^^^^^ |
| 72 |
|
| 73 |
.. autoclass:: GraphQLList |
| 74 |
.. autoclass:: GraphQLNonNull |
| 75 |
|
| 76 |
Types |
| 77 |
^^^^^ |
| 78 |
|
| 79 |
.. autoclass:: GraphQLAbstractType |
| 80 |
.. autoclass:: GraphQLArgument |
| 81 |
.. autoclass:: GraphQLArgumentMap |
| 82 |
.. autoclass:: GraphQLCompositeType |
| 83 |
.. autoclass:: GraphQLEnumValue |
| 84 |
.. autoclass:: GraphQLEnumValueMap |
| 85 |
.. autoclass:: GraphQLField |
| 86 |
.. autoclass:: GraphQLFieldMap |
| 87 |
.. autoclass:: GraphQLInputField |
| 88 |
.. autoclass:: GraphQLInputFieldMap |
| 89 |
.. autoclass:: GraphQLInputType |
| 90 |
.. autoclass:: GraphQLLeafType |
| 91 |
.. autoclass:: GraphQLNamedType |
| 92 |
.. autoclass:: GraphQLNullableType |
| 93 |
.. autoclass:: GraphQLOutputType |
| 94 |
.. autoclass:: GraphQLType |
| 95 |
.. autoclass:: GraphQLWrappingType |
| 96 |
|
| 97 |
.. autoclass:: Thunk |
| 98 |
.. autoclass:: ThunkCollection |
| 99 |
.. autoclass:: ThunkMapping |
| 100 |
|
| 101 |
Resolvers |
| 102 |
^^^^^^^^^ |
| 103 |
|
| 104 |
.. autoclass:: GraphQLFieldResolver |
| 105 |
.. autoclass:: GraphQLIsTypeOfFn |
| 106 |
.. autoclass:: GraphQLResolveInfo |
| 107 |
.. autoclass:: GraphQLTypeResolver |
| 108 |
|
| 109 |
|
| 110 |
Directives |
| 111 |
---------- |
| 112 |
|
| 113 |
Predicates |
| 114 |
^^^^^^^^^^ |
| 115 |
|
| 116 |
.. autofunction:: is_directive |
| 117 |
.. autofunction:: is_specified_directive |
| 118 |
|
| 119 |
Definitions |
| 120 |
^^^^^^^^^^^ |
| 121 |
|
| 122 |
.. autoclass:: GraphQLDirective |
| 123 |
.. autoclass:: GraphQLIncludeDirective |
| 124 |
.. autoclass:: GraphQLSkipDirective |
| 125 |
.. autoclass:: GraphQLDeprecatedDirective |
| 126 |
|
| 127 |
.. data:: specified_directives |
| 128 |
|
| 129 |
A tuple with all directives from the GraphQL specification |
| 130 |
|
| 131 |
.. data:: DEFAULT_DEPRECATION_REASON |
| 132 |
:annotation: = 'No longer supported' |
| 133 |
|
| 134 |
String constant that can be used as the default value for ``deprecation_reason``. |
| 135 |
|
| 136 |
|
| 137 |
Introspection |
| 138 |
------------- |
| 139 |
|
| 140 |
Predicates |
| 141 |
^^^^^^^^^^ |
| 142 |
|
| 143 |
.. autofunction:: is_introspection_type |
| 144 |
|
| 145 |
Definitions |
| 146 |
^^^^^^^^^^^ |
| 147 |
|
| 148 |
.. autoclass:: TypeKind |
| 149 |
.. autoclass:: TypeMetaFieldDef |
| 150 |
.. autoclass:: TypeNameMetaFieldDef |
| 151 |
.. autoclass:: SchemaMetaFieldDef |
| 152 |
|
| 153 |
.. data:: introspection_types |
| 154 |
|
| 155 |
This is a mapping containing all introspection types with their names as keys |
| 156 |
|
| 157 |
|
| 158 |
Scalars |
| 159 |
------- |
| 160 |
|
| 161 |
Predicates |
| 162 |
^^^^^^^^^^ |
| 163 |
|
| 164 |
.. autofunction:: is_specified_scalar_type |
| 165 |
|
| 166 |
Definitions |
| 167 |
^^^^^^^^^^^ |
| 168 |
|
| 169 |
.. autoclass:: GraphQLBoolean |
| 170 |
.. autoclass:: GraphQLFloat |
| 171 |
.. autoclass:: GraphQLID |
| 172 |
.. autoclass:: GraphQLInt |
| 173 |
.. autoclass:: GraphQLString |
| 174 |
|
| 175 |
.. data:: GRAPHQL_MAX_INT |
| 176 |
|
| 177 |
Maximum possible Int value as per GraphQL Spec (32-bit signed integer) |
| 178 |
|
| 179 |
.. data:: GRAPHQL_MIN_INT |
| 180 |
|
| 181 |
Minimum possible Int value as per GraphQL Spec (32-bit signed integer) |
| 182 |
|
| 183 |
|
| 184 |
Schema |
| 185 |
------ |
| 186 |
|
| 187 |
Predicates |
| 188 |
^^^^^^^^^^ |
| 189 |
|
| 190 |
.. autofunction:: is_schema |
| 191 |
|
| 192 |
Definitions |
| 193 |
^^^^^^^^^^^ |
| 194 |
|
| 195 |
.. autoclass:: GraphQLSchema |
| 196 |
|
| 197 |
|
| 198 |
Validate |
| 199 |
-------- |
| 200 |
|
| 201 |
Functions |
| 202 |
^^^^^^^^^ |
| 203 |
|
| 204 |
.. autofunction:: validate_schema |
| 205 |
|
| 206 |
Assertions |
| 207 |
^^^^^^^^^^ |
| 208 |
|
| 209 |
.. autofunction:: assert_valid_schema |
| 210 |
|
| 211 |
|
| 212 |
Other |
| 213 |
----- |
| 214 |
|
| 215 |
Thunk Handling |
| 216 |
^^^^^^^^^^^^^^ |
| 217 |
|
| 218 |
.. autofunction:: resolve_thunk |
| 219 |
|
| 220 |
|
| 221 |
Assertions |
| 222 |
^^^^^^^^^^ |
| 223 |
|
| 224 |
.. autofunction:: assert_name |
| 225 |
.. autofunction:: assert_enum_value_name |