File tree 4 files changed +12
-4
lines changed
4 files changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -330,7 +330,8 @@ export {
330
330
buildASTSchema ,
331
331
// Build a GraphQLSchema from a GraphQL schema language document.
332
332
buildSchema ,
333
- // Get the description from a schema AST node.
333
+ // @deprecated : Get the description from a schema AST node and supports legacy
334
+ // syntax for specifying descriptions - will be removed in v16
334
335
getDescription ,
335
336
// Extends an existing GraphQLSchema from a parsed GraphQL Schema
336
337
// language AST.
Original file line number Diff line number Diff line change @@ -252,8 +252,7 @@ export type GraphQLSchemaValidationOptions = {|
252
252
* in this list valid, even if they do not adhere to the specification's
253
253
* schema validation rules.
254
254
*
255
- * This option is provided to ease adoption and may be removed in a future
256
- * major release.
255
+ * This option is provided to ease adoption and will be removed in v15.
257
256
*/
258
257
allowedLegacyNames ?: ?$ReadOnlyArray < string > ,
259
258
| } ;
Original file line number Diff line number Diff line change @@ -85,6 +85,7 @@ export type BuildSchemaOptions = {
85
85
* Descriptions are defined as preceding string literals, however an older
86
86
* experimental version of the SDL supported preceding comments as
87
87
* descriptions. Set to true to enable this deprecated behavior.
88
+ * This option is provided to ease adoption and will be removed in v16.
88
89
*
89
90
* Default: false
90
91
*/
@@ -471,6 +472,7 @@ function getDeprecationReason(
471
472
472
473
/**
473
474
* Given an ast node, returns its string description.
475
+ * @deprecated : provided to ease adoption and will be removed in v16.
474
476
*
475
477
* Accepts options as a second argument:
476
478
*
Original file line number Diff line number Diff line change @@ -51,7 +51,13 @@ export { introspectionFromSchema } from './introspectionFromSchema';
51
51
export { buildClientSchema } from './buildClientSchema' ;
52
52
53
53
// Build a GraphQLSchema from GraphQL Schema language.
54
- export { buildASTSchema , buildSchema , getDescription } from './buildASTSchema' ;
54
+ export {
55
+ buildASTSchema ,
56
+ buildSchema ,
57
+ // @deprecated : Get the description from a schema AST node and supports legacy
58
+ // syntax for specifying descriptions - will be removed in v16
59
+ getDescription ,
60
+ } from './buildASTSchema' ;
55
61
export type { BuildSchemaOptions } from './buildASTSchema' ;
56
62
57
63
// Extends an existing GraphQLSchema from a parsed GraphQL Schema language AST.
You can’t perform that action at this time.
0 commit comments