1818
1919__Schema = GraphQLObjectType (
2020 '__Schema' ,
21- description = 'A GraphQL Schema defines the capabilities of a GraphQL '
22- 'server. It exposes all available types and directives on '
23- 'the server, as well as the entry points for query and '
24- 'mutation operations.' ,
21+ description = 'A GraphQL Schema defines the capabilities of a GraphQL server. It '
22+ 'exposes all available types and directives on the server, as well as '
23+ 'the entry points for query and mutation operations.' ,
2524 fields = lambda : OrderedDict ([
2625 ('types' , GraphQLField (
2726 description = 'A list of all types supported by this server.' ,
5453
5554__Directive = GraphQLObjectType (
5655 '__Directive' ,
56+ description = 'A Directives provides a way to describe alternate runtime execution and '
57+ 'type validation behavior in a GraphQL document.'
58+ '\n \n In some cases, you need to provide options to alter GraphQL\' s '
59+ 'execution behavior in ways field arguments will not suffice, such as '
60+ 'conditionally including or skipping a field. Directives provide this by '
61+ 'describing additional information to the executor.' ,
5762 fields = lambda : OrderedDict ([
5863 ('name' , GraphQLField (GraphQLNonNull (GraphQLString ))),
5964 ('description' , GraphQLField (GraphQLString )),
@@ -143,6 +148,14 @@ def input_fields(type, *_):
143148
144149__Type = GraphQLObjectType (
145150 '__Type' ,
151+ description = 'The fundamental unit of any GraphQL Schema is the type. There are '
152+ 'many kinds of types in GraphQL as represented by the `__TypeKind` enum.'
153+ '\n \n Depending on the kind of a type, certain fields describe '
154+ 'information about that type. Scalar types provide no information '
155+ 'beyond a name and description, while Enum types provide their values. '
156+ 'Object and Interface types provide the fields they describe. Abstract '
157+ 'types, Union and Interface, provide the Object types possible '
158+ 'at runtime. List and NonNull types compose other types.' ,
146159 fields = lambda : OrderedDict ([
147160 ('kind' , GraphQLField (
148161 type = GraphQLNonNull (__TypeKind ),
@@ -190,6 +203,8 @@ def input_fields(type, *_):
190203
191204__Field = GraphQLObjectType (
192205 '__Field' ,
206+ description = 'Object and Interface types are described by a list of Fields, each of '
207+ 'which has a name, potentially a list of arguments, and a return type.' ,
193208 fields = lambda : OrderedDict ([
194209 ('name' , GraphQLField (GraphQLNonNull (GraphQLString ))),
195210 ('description' , GraphQLField (GraphQLString )),
@@ -211,6 +226,9 @@ def input_fields(type, *_):
211226
212227__InputValue = GraphQLObjectType (
213228 '__InputValue' ,
229+ description = 'Arguments provided to Fields or Directives and the input fields of an '
230+ 'InputObject are represented as Input Values which describe their type '
231+ 'and optionally a default value.' ,
214232 fields = lambda : OrderedDict ([
215233 ('name' , GraphQLField (GraphQLNonNull (GraphQLString ))),
216234 ('description' , GraphQLField (GraphQLString )),
@@ -225,6 +243,9 @@ def input_fields(type, *_):
225243
226244__EnumValue = GraphQLObjectType (
227245 '__EnumValue' ,
246+ description = 'One possible value for a given Enum. Enum values are unique values, not '
247+ 'a placeholder for a string or numeric value. However an Enum value is '
248+ 'returned in a JSON response as a string.' ,
228249 fields = lambda : OrderedDict ([
229250 ('name' , GraphQLField (GraphQLNonNull (GraphQLString ))),
230251 ('description' , GraphQLField (GraphQLString )),
@@ -240,7 +261,7 @@ def input_fields(type, *_):
240261
241262__TypeKind = GraphQLEnumType (
242263 '__TypeKind' ,
243- description = 'An enum describing what kind of type a given __Type is' ,
264+ description = 'An enum describing what kind of type a given ` __Type` is' ,
244265 values = OrderedDict ([
245266 ('SCALAR' , GraphQLEnumValue (
246267 TypeKind .SCALAR ,
@@ -305,7 +326,8 @@ def input_fields(type, *_):
305326del TypeMetaFieldDef_args_name
306327
307328TypeNameMetaFieldDef = GraphQLField (
308- GraphQLNonNull (GraphQLString ),
329+ type = GraphQLNonNull (GraphQLString ),
330+ description = 'The name of the current Object type at runtime.' ,
309331 resolver = lambda source , args , info : info .parent_type .name ,
310332 args = []
311333)
0 commit comments