-
-
Notifications
You must be signed in to change notification settings - Fork 225
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
@deprecated
directive not supported for input field
#186
Comments
The directive declared for faker are only the one related to faker i.e. directive @fake(
type: fake__Types!
options: fake__options = {}
locale: fake__Locale
) on FIELD_DEFINITION | SCALAR
directive @listLength(min: Int!, max: Int!) on FIELD_DEFINITION
scalar examples__JSON
directive @examples(values: [examples__JSON]!) on FIELD_DEFINITION | SCALAR Therefore, to support the @deprecated directive, try adding the following definition somewhere in your schema directive @deprecated(
reason: String = "No longer supported"
) on FIELD_DEFINITION | ARGUMENT_DEFINITION | INPUT_FIELD_DEFINITION | ENUM_VALUE |
I run into the same problem. I've tried @Xample solution but it gives me following error: |
Check carefully the included files, you might be importing both a source and a generated .GraphQL file which leads to this duplicated directive error. |
GraphQL-Faker throws an error when running on a schema that contains a
@deprecated
directive on an input field. However that is now supported by the graphql-spec, see: graphql/graphql-spec#805Logs:
The text was updated successfully, but these errors were encountered: