22
22
* import { parse } from 'graphql';
23
23
* import { parse } from 'graphql/language';
24
24
*/
25
- // The GraphQL.js version info.
25
+ /** The GraphQL.js version info. */
26
26
export { version , versionInfo } from './version' ;
27
- // The primary entry point into fulfilling a GraphQL request.
27
+ /** The primary entry point into fulfilling a GraphQL request. */
28
28
export { GraphQLArgs , graphql , graphqlSync } from './graphql' ;
29
- // Create and operate on GraphQL type definitions and schema.
29
+ /** Create and operate on GraphQL type definitions and schema. */
30
30
export {
31
- // Definitions
31
+ /** Definitions */
32
32
GraphQLSchema ,
33
33
GraphQLDirective ,
34
34
GraphQLScalarType ,
@@ -39,24 +39,24 @@ export {
39
39
GraphQLInputObjectType ,
40
40
GraphQLList ,
41
41
GraphQLNonNull ,
42
- // Standard GraphQL Scalars
42
+ /** Standard GraphQL Scalars */
43
43
specifiedScalarTypes ,
44
44
GraphQLInt ,
45
45
GraphQLFloat ,
46
46
GraphQLString ,
47
47
GraphQLBoolean ,
48
48
GraphQLID ,
49
- // Built-in Directives defined by the Spec
49
+ /** Built-in Directives defined by the Spec */
50
50
specifiedDirectives ,
51
51
GraphQLIncludeDirective ,
52
52
GraphQLSkipDirective ,
53
53
GraphQLDeprecatedDirective ,
54
54
GraphQLSpecifiedByDirective ,
55
- // "Enum" of Type Kinds
55
+ /** "Enum" of Type Kinds */
56
56
TypeKind ,
57
- // Constant Deprecation Reason
57
+ /** Constant Deprecation Reason */
58
58
DEFAULT_DEPRECATION_REASON ,
59
- // GraphQL Types for introspection.
59
+ /** GraphQL Types for introspection. */
60
60
introspectionTypes ,
61
61
__Schema ,
62
62
__Directive ,
@@ -66,11 +66,11 @@ export {
66
66
__InputValue ,
67
67
__EnumValue ,
68
68
__TypeKind ,
69
- // Meta-field definitions.
69
+ /** Meta-field definitions. */
70
70
SchemaMetaFieldDef ,
71
71
TypeMetaFieldDef ,
72
72
TypeNameMetaFieldDef ,
73
- // Predicates
73
+ /** Predicates */
74
74
isSchema ,
75
75
isDirective ,
76
76
isType ,
@@ -95,7 +95,7 @@ export {
95
95
isSpecifiedScalarType ,
96
96
isIntrospectionType ,
97
97
isSpecifiedDirective ,
98
- // Assertions
98
+ /** Assertions */
99
99
assertSchema ,
100
100
assertDirective ,
101
101
assertType ,
@@ -115,10 +115,10 @@ export {
115
115
assertWrappingType ,
116
116
assertNullableType ,
117
117
assertNamedType ,
118
- // Un-modifiers
118
+ /** Un-modifiers */
119
119
getNullableType ,
120
120
getNamedType ,
121
- // Validate GraphQL schema.
121
+ /** Validate GraphQL schema. */
122
122
validateSchema ,
123
123
assertValidSchema ,
124
124
} from './type/index' ;
@@ -179,33 +179,33 @@ export {
179
179
GraphQLScalarValueParser ,
180
180
GraphQLScalarLiteralParser ,
181
181
} from './type/index' ;
182
- // Parse and operate on GraphQL language source files.
182
+ /** Parse and operate on GraphQL language source files. */
183
183
export {
184
184
Token ,
185
185
Source ,
186
186
Location ,
187
187
getLocation ,
188
- // Print source location
188
+ /** Print source location */
189
189
printLocation ,
190
190
printSourceLocation ,
191
- // Lex
191
+ /** Lex */
192
192
Lexer ,
193
193
TokenKind ,
194
- // Parse
194
+ /** Parse */
195
195
parse ,
196
196
parseValue ,
197
197
parseConstValue ,
198
198
parseType ,
199
- // Print
199
+ /** Print */
200
200
print ,
201
- // Visit
201
+ /** Visit */
202
202
visit ,
203
203
visitInParallel ,
204
204
getVisitFn ,
205
205
BREAK ,
206
206
Kind ,
207
207
DirectiveLocation ,
208
- // Predicates
208
+ /** Predicates */
209
209
isDefinitionNode ,
210
210
isExecutableDefinitionNode ,
211
211
isSelectionNode ,
@@ -223,13 +223,13 @@ export {
223
223
TokenKindEnum ,
224
224
KindEnum ,
225
225
DirectiveLocationEnum ,
226
- // Visitor utilities
226
+ /** Visitor utilities */
227
227
ASTVisitor ,
228
228
ASTVisitFn ,
229
- // AST nodes
229
+ /** AST nodes */
230
230
ASTNode ,
231
231
ASTKindToNode ,
232
- // Each kind of AST node
232
+ /** Each kind of AST node */
233
233
NameNode ,
234
234
DocumentNode ,
235
235
DefinitionNode ,
@@ -290,7 +290,7 @@ export {
290
290
EnumTypeExtensionNode ,
291
291
InputObjectTypeExtensionNode ,
292
292
} from './language/index' ;
293
- // Execute GraphQL queries.
293
+ /** Execute GraphQL queries. */
294
294
export {
295
295
execute ,
296
296
executeSync ,
@@ -307,13 +307,13 @@ export {
307
307
createSourceEventStream ,
308
308
SubscriptionArgs ,
309
309
} from './subscription/index' ;
310
- // Validate GraphQL documents.
310
+ /** Validate GraphQL documents. */
311
311
export {
312
312
validate ,
313
313
ValidationContext ,
314
- // All validation rules in the GraphQL Specification.
314
+ /** All validation rules in the GraphQL Specification. */
315
315
specifiedRules ,
316
- // Individual validation rules.
316
+ /** Individual validation rules. */
317
317
ExecutableDefinitionsRule ,
318
318
FieldsOnCorrectTypeRule ,
319
319
FragmentsOnCompositeTypesRule ,
@@ -340,20 +340,20 @@ export {
340
340
ValuesOfCorrectTypeRule ,
341
341
VariablesAreInputTypesRule ,
342
342
VariablesInAllowedPositionRule ,
343
- // SDL-specific validation rules
343
+ /** SDL-specific validation rules */
344
344
LoneSchemaDefinitionRule ,
345
345
UniqueOperationTypesRule ,
346
346
UniqueTypeNamesRule ,
347
347
UniqueEnumValueNamesRule ,
348
348
UniqueFieldDefinitionNamesRule ,
349
349
UniqueDirectiveNamesRule ,
350
350
PossibleTypeExtensionsRule ,
351
- // Custom validation rules
351
+ /** Custom validation rules */
352
352
NoDeprecatedCustomRule ,
353
353
NoSchemaIntrospectionCustomRule ,
354
354
ValidationRule ,
355
355
} from './validation/index' ;
356
- // Create, format, and print GraphQL errors.
356
+ /** Create, format, and print GraphQL errors. */
357
357
export {
358
358
GraphQLError ,
359
359
syntaxError ,
@@ -362,65 +362,63 @@ export {
362
362
formatError ,
363
363
GraphQLFormattedError ,
364
364
} from './error/index' ;
365
- // Utilities for operating on GraphQL type schema and parsed sources.
365
+ /** Utilities for operating on GraphQL type schema and parsed sources. */
366
366
export {
367
- // Produce the GraphQL query recommended for a full schema introspection.
368
- // Accepts optional IntrospectionOptions.
367
+ /**
368
+ * Produce the GraphQL query recommended for a full schema introspection.
369
+ * Accepts optional IntrospectionOptions.
370
+ */
369
371
getIntrospectionQuery ,
370
- // Gets the target Operation from a Document.
372
+ /** Gets the target Operation from a Document. */
371
373
getOperationAST ,
372
- // Gets the Type for the target Operation AST.
374
+ /** Gets the Type for the target Operation AST. */
373
375
getOperationRootType ,
374
- // Convert a GraphQLSchema to an IntrospectionQuery.
376
+ /** Convert a GraphQLSchema to an IntrospectionQuery. */
375
377
introspectionFromSchema ,
376
- // Build a GraphQLSchema from an introspection result.
378
+ /** Build a GraphQLSchema from an introspection result. */
377
379
buildClientSchema ,
378
- // Build a GraphQLSchema from a parsed GraphQL Schema language AST.
380
+ /** Build a GraphQLSchema from a parsed GraphQL Schema language AST. */
379
381
buildASTSchema ,
380
- // Build a GraphQLSchema from a GraphQL schema language document.
382
+ /** Build a GraphQLSchema from a GraphQL schema language document. */
381
383
buildSchema ,
382
- // Extends an existing GraphQLSchema from a parsed GraphQL Schema
383
- // language AST.
384
+ /** Extends an existing GraphQLSchema from a parsed GraphQL Schema language AST. */
384
385
extendSchema ,
385
- // Sort a GraphQLSchema.
386
+ /** Sort a GraphQLSchema. */
386
387
lexicographicSortSchema ,
387
- // Print a GraphQLSchema to GraphQL Schema language.
388
+ /** Print a GraphQLSchema to GraphQL Schema language. */
388
389
printSchema ,
389
- // Print a GraphQLType to GraphQL Schema language.
390
+ /** Print a GraphQLType to GraphQL Schema language. */
390
391
printType ,
391
- // Prints the built-in introspection schema in the Schema Language
392
- // format.
392
+ /** Prints the built-in introspection schema in the Schema Language format. */
393
393
printIntrospectionSchema ,
394
- // Create a GraphQLType from a GraphQL language AST.
394
+ /** Create a GraphQLType from a GraphQL language AST. */
395
395
typeFromAST ,
396
- // Create a JavaScript value from a GraphQL language AST with a Type.
396
+ /** Create a JavaScript value from a GraphQL language AST with a Type. */
397
397
valueFromAST ,
398
- // Create a JavaScript value from a GraphQL language AST without a Type.
398
+ /** Create a JavaScript value from a GraphQL language AST without a Type. */
399
399
valueFromASTUntyped ,
400
- // Create a GraphQL language AST from a JavaScript value.
400
+ /** Create a GraphQL language AST from a JavaScript value. */
401
401
astFromValue ,
402
- // A helper to use within recursive-descent visitors which need to be aware of
403
- // the GraphQL type system.
402
+ /** A helper to use within recursive-descent visitors which need to be aware of the GraphQL type system. */
404
403
TypeInfo ,
405
404
visitWithTypeInfo ,
406
- // Coerces a JavaScript value to a GraphQL type, or produces errors.
405
+ /** Coerces a JavaScript value to a GraphQL type, or produces errors. */
407
406
coerceInputValue ,
408
- // Concatenates multiple AST together.
407
+ /** Concatenates multiple AST together. */
409
408
concatAST ,
410
- // Separates an AST into an AST per Operation.
409
+ /** Separates an AST into an AST per Operation. */
411
410
separateOperations ,
412
- // Strips characters that are not significant to the validity or execution
413
- // of a GraphQL document.
411
+ /** Strips characters that are not significant to the validity or execution of a GraphQL document. */
414
412
stripIgnoredCharacters ,
415
- // Comparators for types
413
+ /** Comparators for types */
416
414
isEqualType ,
417
415
isTypeSubTypeOf ,
418
416
doTypesOverlap ,
419
- // Asserts a string is a valid GraphQL name.
417
+ /** Asserts a string is a valid GraphQL name. */
420
418
assertValidName ,
421
- // Determine if a string is a valid GraphQL name.
419
+ /** Determine if a string is a valid GraphQL name. */
422
420
isValidNameError ,
423
- // Compares two GraphQLSchemas and detects breaking changes.
421
+ /** Compares two GraphQLSchemas and detects breaking changes. */
424
422
BreakingChangeType ,
425
423
DangerousChangeType ,
426
424
findBreakingChanges ,
0 commit comments