Skip to content
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

Deprecation of arguments #270

Closed
zyixc opened this issue Sep 22, 2016 · 5 comments
Closed

Deprecation of arguments #270

zyixc opened this issue Sep 22, 2016 · 5 comments

Comments

@zyixc
Copy link

zyixc commented Sep 22, 2016

It would be nice to have the ability to deprecate arguments,
like you can do with fields and enum values

Reference Deprecation of input fields,
This was proposed as part of the GraphQL specification, discussion is still ongoing

PostInputType = GraphQL::InputObjectType.define do
  name 'PostInputType'
  argument :title, !types.String
  argument :body, !types.String
  argument :content, ContentInputType, deprecation_reason: 'Simplified'
end
@rmosolgo
Copy link
Owner

I won't support this until it's in the spec. At that time, we can revisit it!

If you have a specific use case, you could share it on facebook/graphql to help inform their decision.

@gottfrois
Copy link

I think this has been roadmap by the graphql community graphql/graphql-spec#197

@willisplummer
Copy link

It looks like this lives here now: graphql/graphql-spec#525

@quinn-freshly
Copy link

this would be very useful for us (pro customer)

@jturkel
Copy link
Contributor

jturkel commented Jul 9, 2020

#3015 adds support for this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants