-
Notifications
You must be signed in to change notification settings - Fork 122
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fixed prelude.graphql to be correct in the latest spec #182
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,100 +22,100 @@ directive @include(if: Boolean!) on FIELD | FRAGMENT_SPREAD | INLINE_FRAGMENT | |
directive @skip(if: Boolean!) on FIELD | FRAGMENT_SPREAD | INLINE_FRAGMENT | ||
|
||
"The @deprecated directive is used within the type system definition language to indicate deprecated portions of a GraphQL service’s schema, such as deprecated fields on a type or deprecated enum values." | ||
directive @deprecated(reason: String = "No longer supported") on FIELD_DEFINITION | ENUM_VALUE | ARGUMENT_DEFINITION | INPUT_FIELD_DEFINITION | ||
directive @deprecated(reason: String = "No longer supported") on FIELD_DEFINITION | ENUM_VALUE | ||
|
||
"The @specifiedBy built-in directive is used within the type system definition language to provide a scalar specification URL for specifying the behavior of custom scalar types." | ||
directive @specifiedBy(url: String!) on SCALAR | ||
Comment on lines
+27
to
+28
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. new one |
||
|
||
type __Schema { | ||
types: [__Type!]! | ||
queryType: __Type! | ||
mutationType: __Type | ||
subscriptionType: __Type | ||
directives: [__Directive!]! | ||
description: String | ||
types: [__Type!]! | ||
queryType: __Type! | ||
mutationType: __Type | ||
subscriptionType: __Type | ||
directives: [__Directive!]! | ||
} | ||
|
||
type __Type { | ||
kind: __TypeKind! | ||
name: String | ||
description: String | ||
|
||
# OBJECT and INTERFACE only | ||
fields(includeDeprecated: Boolean = false): [__Field!] | ||
|
||
# OBJECT only | ||
interfaces: [__Type!] | ||
|
||
# INTERFACE and UNION only | ||
possibleTypes: [__Type!] | ||
|
||
# ENUM only | ||
enumValues(includeDeprecated: Boolean = false): [__EnumValue!] | ||
|
||
# INPUT_OBJECT only | ||
inputFields(includeDeprecated: Boolean = false): [__InputValue!] | ||
|
||
# NON_NULL and LIST only | ||
ofType: __Type | ||
kind: __TypeKind! | ||
name: String | ||
description: String | ||
# must be non-null for OBJECT and INTERFACE, otherwise null. | ||
fields(includeDeprecated: Boolean = false): [__Field!] | ||
# must be non-null for OBJECT and INTERFACE, otherwise null. | ||
interfaces: [__Type!] | ||
# must be non-null for INTERFACE and UNION, otherwise null. | ||
possibleTypes: [__Type!] | ||
# must be non-null for ENUM, otherwise null. | ||
enumValues(includeDeprecated: Boolean = false): [__EnumValue!] | ||
# must be non-null for INPUT_OBJECT, otherwise null. | ||
inputFields: [__InputValue!] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. fixed |
||
# must be non-null for NON_NULL and LIST, otherwise null. | ||
ofType: __Type | ||
# may be non-null for custom SCALAR, otherwise null. | ||
specifiedByURL: String | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. new one |
||
} | ||
|
||
type __Field { | ||
name: String! | ||
description: String | ||
args(includeDeprecated: Boolean = false): [__InputValue!]! | ||
type: __Type! | ||
isDeprecated: Boolean! | ||
deprecationReason: String | ||
name: String! | ||
description: String | ||
args: [__InputValue!]! | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. fixed |
||
type: __Type! | ||
isDeprecated: Boolean! | ||
deprecationReason: String | ||
} | ||
|
||
type __InputValue { | ||
name: String! | ||
description: String | ||
type: __Type! | ||
defaultValue: String | ||
name: String! | ||
description: String | ||
type: __Type! | ||
defaultValue: String | ||
} | ||
|
||
type __EnumValue { | ||
name: String! | ||
description: String | ||
isDeprecated: Boolean! | ||
deprecationReason: String | ||
name: String! | ||
description: String | ||
isDeprecated: Boolean! | ||
deprecationReason: String | ||
} | ||
|
||
enum __TypeKind { | ||
SCALAR | ||
OBJECT | ||
INTERFACE | ||
UNION | ||
ENUM | ||
INPUT_OBJECT | ||
LIST | ||
NON_NULL | ||
SCALAR | ||
OBJECT | ||
INTERFACE | ||
UNION | ||
ENUM | ||
INPUT_OBJECT | ||
LIST | ||
NON_NULL | ||
} | ||
|
||
type __Directive { | ||
name: String! | ||
description: String | ||
locations: [__DirectiveLocation!]! | ||
args: [__InputValue!]! | ||
isRepeatable: Boolean! | ||
name: String! | ||
description: String | ||
locations: [__DirectiveLocation!]! | ||
args: [__InputValue!]! | ||
isRepeatable: Boolean! | ||
} | ||
|
||
enum __DirectiveLocation { | ||
QUERY | ||
MUTATION | ||
SUBSCRIPTION | ||
FIELD | ||
FRAGMENT_DEFINITION | ||
FRAGMENT_SPREAD | ||
INLINE_FRAGMENT | ||
VARIABLE_DEFINITION | ||
SCHEMA | ||
SCALAR | ||
OBJECT | ||
FIELD_DEFINITION | ||
ARGUMENT_DEFINITION | ||
INTERFACE | ||
UNION | ||
ENUM | ||
ENUM_VALUE | ||
INPUT_OBJECT | ||
INPUT_FIELD_DEFINITION | ||
QUERY | ||
MUTATION | ||
SUBSCRIPTION | ||
FIELD | ||
FRAGMENT_DEFINITION | ||
FRAGMENT_SPREAD | ||
INLINE_FRAGMENT | ||
VARIABLE_DEFINITION | ||
SCHEMA | ||
SCALAR | ||
OBJECT | ||
FIELD_DEFINITION | ||
ARGUMENT_DEFINITION | ||
INTERFACE | ||
UNION | ||
ENUM | ||
ENUM_VALUE | ||
INPUT_OBJECT | ||
INPUT_FIELD_DEFINITION | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
incorrect
https://spec.graphql.org/October2021/#sec--deprecated