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
description: 'Marks an element of a GraphQL schema as no longer supported.',
177
-
locations: [
178
-
DirectiveLocation.FIELD_DEFINITION,
179
-
DirectiveLocation.ARGUMENT_DEFINITION,
180
-
DirectiveLocation.INPUT_FIELD_DEFINITION,
181
-
DirectiveLocation.ENUM_VALUE,
182
-
],
183
-
args: {
184
-
reason: {
185
-
type: GraphQLString,
186
-
description:
187
-
'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/).',
description: 'Marks an element of a GraphQL schema as no longer supported.',
178
+
locations: [
179
+
DirectiveLocation.FIELD_DEFINITION,
180
+
DirectiveLocation.ARGUMENT_DEFINITION,
181
+
DirectiveLocation.INPUT_FIELD_DEFINITION,
182
+
DirectiveLocation.ENUM_VALUE,
183
+
],
184
+
args: {
185
+
reason: {
186
+
type: GraphQLString,
187
+
description:
188
+
'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/).',
189
+
defaultValue: DEFAULT_DEPRECATION_REASON,
190
+
},
189
191
},
190
192
},
191
-
});
193
+
);
192
194
193
195
/**
194
196
* Used to provide a URL for specifying the behaviour of custom scalar definitions.
'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.',
@@ -76,7 +76,7 @@ export const __Schema = new GraphQLObjectType({
"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.",
@@ -109,7 +109,7 @@ export const __Directive = new GraphQLObjectType({
'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, description and optional `specifiedByUrl`, 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.',
@@ -315,7 +315,7 @@ export const __Type = new GraphQLObjectType({
'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.',
@@ -399,7 +399,7 @@ export const __InputValue = new GraphQLObjectType({
'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.',
'The `Float` scalar type represents signed double-precision fractional values as specified by [IEEE 754](https://en.wikipedia.org/wiki/IEEE_floating_point).',
@@ -174,7 +174,7 @@ function coerceString(inputValue: mixed): string {
'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.',
@@ -214,7 +214,7 @@ function coerceBoolean(inputValue: mixed): boolean {
'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.',
@@ -270,14 +270,10 @@ export const GraphQLID = new GraphQLScalarType({
0 commit comments