22
22
* import { parse } from 'graphql';
23
23
* import { parse } from 'graphql/language';
24
24
* ```
25
+ *
26
+ * @packageDocumentation
25
27
*/
26
28
27
- /** The GraphQL.js version info. */
29
+ // The GraphQL.js version info.
28
30
export { version , versionInfo } from './version' ;
29
31
30
- /** The primary entry point into fulfilling a GraphQL request. */
32
+ // The primary entry point into fulfilling a GraphQL request.
31
33
export type { GraphQLArgs } from './graphql' ;
32
34
export { graphql , graphqlSync } from './graphql' ;
33
35
34
- /** Create and operate on GraphQL type definitions and schema. */
36
+ // Create and operate on GraphQL type definitions and schema.
35
37
export {
36
38
resolveObjMapThunk ,
37
39
resolveReadonlyArrayThunk ,
38
- /** Definitions */
40
+ // Definitions
39
41
GraphQLSchema ,
40
42
GraphQLDirective ,
41
43
GraphQLScalarType ,
@@ -46,27 +48,27 @@ export {
46
48
GraphQLInputObjectType ,
47
49
GraphQLList ,
48
50
GraphQLNonNull ,
49
- /** Standard GraphQL Scalars */
51
+ // Standard GraphQL Scalars
50
52
specifiedScalarTypes ,
51
53
GraphQLInt ,
52
54
GraphQLFloat ,
53
55
GraphQLString ,
54
56
GraphQLBoolean ,
55
57
GraphQLID ,
56
- /** Int boundaries constants */
58
+ // Int boundaries constants
57
59
GRAPHQL_MAX_INT ,
58
60
GRAPHQL_MIN_INT ,
59
- /** Built-in Directives defined by the Spec */
61
+ // Built-in Directives defined by the Spec
60
62
specifiedDirectives ,
61
63
GraphQLIncludeDirective ,
62
64
GraphQLSkipDirective ,
63
65
GraphQLDeprecatedDirective ,
64
66
GraphQLSpecifiedByDirective ,
65
- /** "Enum" of Type Kinds */
67
+ // "Enum" of Type Kinds
66
68
TypeKind ,
67
- /** Constant Deprecation Reason */
69
+ // Constant Deprecation Reason
68
70
DEFAULT_DEPRECATION_REASON ,
69
- /** GraphQL Types for introspection. */
71
+ // GraphQL Types for introspection.
70
72
introspectionTypes ,
71
73
__Schema ,
72
74
__Directive ,
@@ -76,11 +78,11 @@ export {
76
78
__InputValue ,
77
79
__EnumValue ,
78
80
__TypeKind ,
79
- /** Meta-field definitions. */
81
+ // Meta-field definitions.
80
82
SchemaMetaFieldDef ,
81
83
TypeMetaFieldDef ,
82
84
TypeNameMetaFieldDef ,
83
- /** Predicates */
85
+ // Predicates
84
86
isSchema ,
85
87
isDirective ,
86
88
isType ,
@@ -105,7 +107,7 @@ export {
105
107
isSpecifiedScalarType ,
106
108
isIntrospectionType ,
107
109
isSpecifiedDirective ,
108
- /** Assertions */
110
+ // Assertions
109
111
assertSchema ,
110
112
assertDirective ,
111
113
assertType ,
@@ -125,13 +127,13 @@ export {
125
127
assertWrappingType ,
126
128
assertNullableType ,
127
129
assertNamedType ,
128
- /** Un-modifiers */
130
+ // Un-modifiers
129
131
getNullableType ,
130
132
getNamedType ,
131
- /** Validate GraphQL schema. */
133
+ // Validate GraphQL schema.
132
134
validateSchema ,
133
135
assertValidSchema ,
134
- /** Upholds the spec rules about naming. */
136
+ // Upholds the spec rules about naming.
135
137
assertName ,
136
138
assertEnumValueName ,
137
139
} from './type/index' ;
@@ -194,35 +196,35 @@ export type {
194
196
GraphQLScalarLiteralParser ,
195
197
} from './type/index' ;
196
198
197
- /** Parse and operate on GraphQL language source files. */
199
+ // Parse and operate on GraphQL language source files.
198
200
export {
199
201
Token ,
200
202
Source ,
201
203
Location ,
202
204
OperationTypeNode ,
203
205
getLocation ,
204
- /** Print source location */
206
+ // Print source location.
205
207
printLocation ,
206
208
printSourceLocation ,
207
- /** Lex */
209
+ // Lex
208
210
Lexer ,
209
211
TokenKind ,
210
- /** Parse */
212
+ // Parse
211
213
parse ,
212
214
parseValue ,
213
215
parseConstValue ,
214
216
parseType ,
215
- /** Print */
217
+ // Print
216
218
print ,
217
- /** Visit */
219
+ // Visit
218
220
visit ,
219
221
visitInParallel ,
220
222
getVisitFn ,
221
223
getEnterLeaveForKind ,
222
224
BREAK ,
223
225
Kind ,
224
226
DirectiveLocation ,
225
- /** Predicates */
227
+ // Predicates
226
228
isDefinitionNode ,
227
229
isExecutableDefinitionNode ,
228
230
isSelectionNode ,
@@ -241,14 +243,14 @@ export type {
241
243
TokenKindEnum ,
242
244
KindEnum ,
243
245
DirectiveLocationEnum ,
244
- /** Visitor utilities */
246
+ // Visitor utilities
245
247
ASTVisitor ,
246
248
ASTVisitFn ,
247
249
ASTVisitorKeyMap ,
248
- /** AST nodes */
250
+ // AST nodes
249
251
ASTNode ,
250
252
ASTKindToNode ,
251
- /** Each kind of AST node */
253
+ // Each kind of AST node
252
254
NameNode ,
253
255
DocumentNode ,
254
256
DefinitionNode ,
@@ -309,7 +311,7 @@ export type {
309
311
InputObjectTypeExtensionNode ,
310
312
} from './language/index' ;
311
313
312
- /** Execute GraphQL queries. */
314
+ // Execute GraphQL queries.
313
315
export {
314
316
execute ,
315
317
executeSync ,
@@ -329,13 +331,13 @@ export type {
329
331
330
332
export type { SubscriptionArgs } from './subscription/index' ;
331
333
332
- /** Validate GraphQL documents. */
334
+ // Validate GraphQL documents.
333
335
export {
334
336
validate ,
335
337
ValidationContext ,
336
- /** All validation rules in the GraphQL Specification. */
338
+ // All validation rules in the GraphQL Specification.
337
339
specifiedRules ,
338
- /** Individual validation rules. */
340
+ // Individual validation rules.
339
341
ExecutableDefinitionsRule ,
340
342
FieldsOnCorrectTypeRule ,
341
343
FragmentsOnCompositeTypesRule ,
@@ -362,7 +364,7 @@ export {
362
364
ValuesOfCorrectTypeRule ,
363
365
VariablesAreInputTypesRule ,
364
366
VariablesInAllowedPositionRule ,
365
- /** SDL-specific validation rules */
367
+ // SDL-specific validation rules
366
368
LoneSchemaDefinitionRule ,
367
369
UniqueOperationTypesRule ,
368
370
UniqueTypeNamesRule ,
@@ -371,14 +373,14 @@ export {
371
373
UniqueArgumentDefinitionNamesRule ,
372
374
UniqueDirectiveNamesRule ,
373
375
PossibleTypeExtensionsRule ,
374
- /** Custom validation rules */
376
+ // Custom validation rules
375
377
NoDeprecatedCustomRule ,
376
378
NoSchemaIntrospectionCustomRule ,
377
379
} from './validation/index' ;
378
380
379
381
export type { ValidationRule } from './validation/index' ;
380
382
381
- /** Create, format, and print GraphQL errors. */
383
+ // Create, format, and print GraphQL errors.
382
384
export {
383
385
GraphQLError ,
384
386
syntaxError ,
@@ -392,63 +394,61 @@ export type {
392
394
GraphQLErrorExtensions ,
393
395
} from './error/index' ;
394
396
395
- /** Utilities for operating on GraphQL type schema and parsed sources. */
397
+ // Utilities for operating on GraphQL type schema and parsed sources.
396
398
export {
397
- /**
398
- * Produce the GraphQL query recommended for a full schema introspection.
399
- * Accepts optional IntrospectionOptions.
400
- */
399
+ // Produce the GraphQL query recommended for a full schema introspection.
400
+ // Accepts optional IntrospectionOptions.
401
401
getIntrospectionQuery ,
402
- /** Gets the target Operation from a Document. */
402
+ // Gets the target Operation from a Document.
403
403
getOperationAST ,
404
- /** Gets the Type for the target Operation AST. */
404
+ // Gets the Type for the target Operation AST.
405
405
getOperationRootType ,
406
- /** Convert a GraphQLSchema to an IntrospectionQuery. */
406
+ // Convert a GraphQLSchema to an IntrospectionQuery.
407
407
introspectionFromSchema ,
408
- /** Build a GraphQLSchema from an introspection result. */
408
+ // Build a GraphQLSchema from an introspection result.
409
409
buildClientSchema ,
410
- /** Build a GraphQLSchema from a parsed GraphQL Schema language AST. */
410
+ // Build a GraphQLSchema from a parsed GraphQL Schema language AST.
411
411
buildASTSchema ,
412
- /** Build a GraphQLSchema from a GraphQL schema language document. */
412
+ // Build a GraphQLSchema from a GraphQL schema language document.
413
413
buildSchema ,
414
- /** Extends an existing GraphQLSchema from a parsed GraphQL Schema language AST. */
414
+ // Extends an existing GraphQLSchema from a parsed GraphQL Schema language AST.
415
415
extendSchema ,
416
- /** Sort a GraphQLSchema. */
416
+ // Sort a GraphQLSchema.
417
417
lexicographicSortSchema ,
418
- /** Print a GraphQLSchema to GraphQL Schema language. */
418
+ // Print a GraphQLSchema to GraphQL Schema language.
419
419
printSchema ,
420
- /** Print a GraphQLType to GraphQL Schema language. */
420
+ // Print a GraphQLType to GraphQL Schema language.
421
421
printType ,
422
- /** Prints the built-in introspection schema in the Schema Language format. */
422
+ // Prints the built-in introspection schema in the Schema Language format.
423
423
printIntrospectionSchema ,
424
- /** Create a GraphQLType from a GraphQL language AST. */
424
+ // Create a GraphQLType from a GraphQL language AST.
425
425
typeFromAST ,
426
- /** Create a JavaScript value from a GraphQL language AST with a Type. */
426
+ // Create a JavaScript value from a GraphQL language AST with a Type.
427
427
valueFromAST ,
428
- /** Create a JavaScript value from a GraphQL language AST without a Type. */
428
+ // Create a JavaScript value from a GraphQL language AST without a Type.
429
429
valueFromASTUntyped ,
430
- /** Create a GraphQL language AST from a JavaScript value. */
430
+ // Create a GraphQL language AST from a JavaScript value.
431
431
astFromValue ,
432
- /** A helper to use within recursive-descent visitors which need to be aware of the GraphQL type system. */
432
+ // A helper to use within recursive-descent visitors which need to be aware of the GraphQL type system.
433
433
TypeInfo ,
434
434
visitWithTypeInfo ,
435
- /** Coerces a JavaScript value to a GraphQL type, or produces errors. */
435
+ // Coerces a JavaScript value to a GraphQL type, or produces errors.
436
436
coerceInputValue ,
437
- /** Concatenates multiple AST together. */
437
+ // Concatenates multiple AST together.
438
438
concatAST ,
439
- /** Separates an AST into an AST per Operation. */
439
+ // Separates an AST into an AST per Operation.
440
440
separateOperations ,
441
- /** Strips characters that are not significant to the validity or execution of a GraphQL document. */
441
+ // Strips characters that are not significant to the validity or execution of a GraphQL document.
442
442
stripIgnoredCharacters ,
443
- /** Comparators for types */
443
+ // Comparators for types
444
444
isEqualType ,
445
445
isTypeSubTypeOf ,
446
446
doTypesOverlap ,
447
- /** Asserts a string is a valid GraphQL name. */
447
+ // Asserts a string is a valid GraphQL name.
448
448
assertValidName ,
449
- /** Determine if a string is a valid GraphQL name. */
449
+ // Determine if a string is a valid GraphQL name.
450
450
isValidNameError ,
451
- /** Compares two GraphQLSchemas and detects breaking changes. */
451
+ // Compares two GraphQLSchemas and detects breaking changes.
452
452
BreakingChangeType ,
453
453
DangerousChangeType ,
454
454
findBreakingChanges ,
0 commit comments