You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
'Abstract type FooInterface must resolve to an Object type at '+
427
-
'runtime for field Query.foo with value "dummy", received "[]". '+
428
-
'Either the FooInterface type should provide a "resolveType" '+
429
-
'function or each possible type should provide an "isTypeOf" function.',
426
+
'Abstract type FooInterface must resolve to an Object type at runtime for field Query.foo with value "dummy", received "[]". Either the FooInterface type should provide a "resolveType" function or each possible type should provide an "isTypeOf" function.',
'A GraphQL Schema defines the capabilities of a '+
1295
-
'GraphQL server. It exposes all available types and '+
1296
-
'directives on the server, as well as the entry '+
1297
-
'points for query, mutation, and subscription operations.',
1294
+
'A GraphQL Schema defines the capabilities of a GraphQL server. It exposes all available types and directives on the server, as well as the entry points for query, mutation, and subscription operations.',
'Directs the executor to skip this field or fragment when the `if` '+
143
-
'argument is true.',
141
+
'Directs the executor to skip this field or fragment when the `if` argument is true.',
144
142
locations: [
145
143
DirectiveLocation.FIELD,
146
144
DirectiveLocation.FRAGMENT_SPREAD,
@@ -170,9 +168,7 @@ export const GraphQLDeprecatedDirective = new GraphQLDirective({
170
168
reason: {
171
169
type: GraphQLString,
172
170
description:
173
-
'Explains why this element was deprecated, usually also including a '+
174
-
'suggestion for how to access supported similar data. Formatted using '+
175
-
'the Markdown syntax (as specified by [CommonMark](https://commonmark.org/).',
171
+
'Explains why this element was deprecated, usually also including a suggestion for how to access supported similar data. Formatted using the Markdown syntax (as specified by [CommonMark](https://commonmark.org/).',
Copy file name to clipboardExpand all lines: src/type/introspection.js
+13-39Lines changed: 13 additions & 39 deletions
Original file line number
Diff line number
Diff line change
@@ -34,9 +34,7 @@ import { DirectiveLocation } from '../language/directiveLocation';
34
34
exportconst__Schema=newGraphQLObjectType({
35
35
name: '__Schema',
36
36
description:
37
-
'A GraphQL Schema defines the capabilities of a GraphQL server. It '+
38
-
'exposes all available types and directives on the server, as well as '+
39
-
'the entry points for query, mutation, and subscription operations.',
37
+
'A GraphQL Schema defines the capabilities of a GraphQL server. It exposes all available types and directives on the server, as well as the entry points for query, mutation, and subscription operations.',
40
38
fields: ()=>({
41
39
types: {
42
40
description: 'A list of all types supported by this server.',
@@ -52,15 +50,13 @@ export const __Schema = new GraphQLObjectType({
52
50
},
53
51
mutationType: {
54
52
description:
55
-
'If this server supports mutation, the type that '+
56
-
'mutation operations will be rooted at.',
53
+
'If this server supports mutation, the type that mutation operations will be rooted at.',
57
54
type: __Type,
58
55
resolve: schema=>schema.getMutationType(),
59
56
},
60
57
subscriptionType: {
61
58
description:
62
-
'If this server support subscription, the type that '+
63
-
'subscription operations will be rooted at.',
59
+
'If this server support subscription, the type that subscription operations will be rooted at.',
64
60
type: __Type,
65
61
resolve: schema=>schema.getSubscriptionType(),
66
62
},
@@ -75,12 +71,7 @@ export const __Schema = new GraphQLObjectType({
75
71
exportconst__Directive=newGraphQLObjectType({
76
72
name: '__Directive',
77
73
description:
78
-
'A Directive provides a way to describe alternate runtime execution and '+
79
-
'type validation behavior in a GraphQL document.'+
80
-
"\n\nIn some cases, you need to provide options to alter GraphQL's "+
81
-
'execution behavior in ways field arguments will not suffice, such as '+
82
-
'conditionally including or skipping a field. Directives provide this by '+
83
-
'describing additional information to the executor.',
74
+
"A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document.\n\nIn some cases, you need to provide options to alter GraphQL's execution behavior in ways field arguments will not suffice, such as conditionally including or skipping a field. Directives provide this by describing additional information to the executor.",
84
75
fields: ()=>({
85
76
name: {
86
77
type: GraphQLNonNull(GraphQLString),
@@ -104,8 +95,7 @@ export const __Directive = new GraphQLObjectType({
'A Directive can be adjacent to many parts of the GraphQL language, a '+
108
-
'__DirectiveLocation describes one such possible adjacencies.',
98
+
'A Directive can be adjacent to many parts of the GraphQL language, a __DirectiveLocation describes one such possible adjacencies.',
109
99
values: {
110
100
QUERY: {
111
101
value: DirectiveLocation.QUERY,
@@ -189,14 +179,7 @@ export const __DirectiveLocation = new GraphQLEnumType({
189
179
exportconst__Type=newGraphQLObjectType({
190
180
name: '__Type',
191
181
description:
192
-
'The fundamental unit of any GraphQL Schema is the type. There are '+
193
-
'many kinds of types in GraphQL as represented by the `__TypeKind` enum.'+
194
-
'\n\nDepending on the kind of a type, certain fields describe '+
195
-
'information about that type. Scalar types provide no information '+
196
-
'beyond a name and description, while Enum types provide their values. '+
197
-
'Object and Interface types provide the fields they describe. Abstract '+
198
-
'types, Union and Interface, provide the Object types possible '+
199
-
'at runtime. List and NonNull types compose other types.',
182
+
'The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum.\n\nDepending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name and description, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types.',
200
183
fields: ()=>({
201
184
kind: {
202
185
type: GraphQLNonNull(__TypeKind),
@@ -297,8 +280,7 @@ export const __Type = new GraphQLObjectType({
297
280
exportconst__Field=newGraphQLObjectType({
298
281
name: '__Field',
299
282
description:
300
-
'Object and Interface types are described by a list of Fields, each of '+
301
-
'which has a name, potentially a list of arguments, and a return type.',
283
+
'Object and Interface types are described by a list of Fields, each of which has a name, potentially a list of arguments, and a return type.',
302
284
fields: ()=>({
303
285
name: {
304
286
type: GraphQLNonNull(GraphQLString),
@@ -330,9 +312,7 @@ export const __Field = new GraphQLObjectType({
330
312
exportconst__InputValue=newGraphQLObjectType({
331
313
name: '__InputValue',
332
314
description:
333
-
'Arguments provided to Fields or Directives and the input fields of an '+
334
-
'InputObject are represented as Input Values which describe their type '+
335
-
'and optionally a default value.',
315
+
'Arguments provided to Fields or Directives and the input fields of an InputObject are represented as Input Values which describe their type and optionally a default value.',
336
316
fields: ()=>({
337
317
name: {
338
318
type: GraphQLNonNull(GraphQLString),
@@ -349,8 +329,7 @@ export const __InputValue = new GraphQLObjectType({
349
329
defaultValue: {
350
330
type: GraphQLString,
351
331
description:
352
-
'A GraphQL-formatted string representing the default value for this '+
353
-
'input value.',
332
+
'A GraphQL-formatted string representing the default value for this input value.',
@@ -362,9 +341,7 @@ export const __InputValue = new GraphQLObjectType({
362
341
exportconst__EnumValue=newGraphQLObjectType({
363
342
name: '__EnumValue',
364
343
description:
365
-
'One possible value for a given Enum. Enum values are unique values, not '+
366
-
'a placeholder for a string or numeric value. However an Enum value is '+
367
-
'returned in a JSON response as a string.',
344
+
'One possible value for a given Enum. Enum values are unique values, not a placeholder for a string or numeric value. However an Enum value is returned in a JSON response as a string.',
368
345
fields: ()=>({
369
346
name: {
370
347
type: GraphQLNonNull(GraphQLString),
@@ -407,14 +384,12 @@ export const __TypeKind = new GraphQLEnumType({
407
384
OBJECT: {
408
385
value: TypeKind.OBJECT,
409
386
description:
410
-
'Indicates this type is an object. '+
411
-
'`fields` and `interfaces` are valid fields.',
387
+
'Indicates this type is an object. `fields` and `interfaces` are valid fields.',
412
388
},
413
389
INTERFACE: {
414
390
value: TypeKind.INTERFACE,
415
391
description:
416
-
'Indicates this type is an interface. '+
417
-
'`fields` and `possibleTypes` are valid fields.',
392
+
'Indicates this type is an interface. `fields` and `possibleTypes` are valid fields.',
418
393
},
419
394
UNION: {
420
395
value: TypeKind.UNION,
@@ -429,8 +404,7 @@ export const __TypeKind = new GraphQLEnumType({
429
404
INPUT_OBJECT: {
430
405
value: TypeKind.INPUT_OBJECT,
431
406
description:
432
-
'Indicates this type is an input object. '+
433
-
'`inputFields` is a valid field.',
407
+
'Indicates this type is an input object. `inputFields` is a valid field.',
'The `Float` scalar type represents signed double-precision fractional values as specified by [IEEE 754](https://en.wikipedia.org/wiki/IEEE_floating_point).',
111
108
serialize: serializeFloat,
112
109
parseValue: coerceFloat,
113
110
parseLiteral(ast){
@@ -165,9 +162,7 @@ function coerceString(value: mixed): string {
165
162
exportconstGraphQLString=newGraphQLScalarType({
166
163
name: 'String',
167
164
description:
168
-
'The `String` scalar type represents textual data, represented as UTF-8 '+
169
-
'character sequences. The String type is most often used by GraphQL to '+
170
-
'represent free-form human-readable text.',
165
+
'The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.',
171
166
serialize: serializeString,
172
167
parseValue: coerceString,
173
168
parseLiteral(ast){
@@ -231,11 +226,7 @@ function coerceID(value: mixed): string {
231
226
exportconstGraphQLID=newGraphQLScalarType({
232
227
name: 'ID',
233
228
description:
234
-
'The `ID` scalar type represents a unique identifier, often used to '+
235
-
'refetch an object or as key for a cache. The ID type appears in a JSON '+
236
-
'response as a String; however, it is not intended to be human-readable. '+
237
-
'When expected as an input type, any string (such as `"4"`) or integer '+
238
-
'(such as `4`) input value will be accepted as an ID.',
229
+
'The `ID` scalar type represents a unique identifier, often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable. When expected as an input type, any string (such as `"4"`) or integer (such as `4`) input value will be accepted as an ID.',
0 commit comments