Graphql-ruby: Deprecation of arguments

Created on 22 Sep 2016  路  5Comments  路  Source: rmosolgo/graphql-ruby

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

Most helpful comment

I think this has been roadmap by the graphql community https://github.com/facebook/graphql/issues/197

All 5 comments

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.

I think this has been roadmap by the graphql community https://github.com/facebook/graphql/issues/197

It looks like this lives here now: https://github.com/graphql/graphql-spec/pull/525

this would be very useful for us (pro customer)

3015 adds support for this.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

KevinColemanInc picture KevinColemanInc  路  3Comments

dsgoers picture dsgoers  路  3Comments

amozoss picture amozoss  路  3Comments

jesster2k10 picture jesster2k10  路  3Comments

gastonmorixe picture gastonmorixe  路  3Comments