juniper icon indicating copy to clipboard operation
juniper copied to clipboard

Feature request: support for deprecating input values

Open mrtnzlml opened this issue 3 years ago • 3 comments

Hola! 👋 Thanks for considering this feature request! 🙂

Is your feature request related to a problem? Please describe.

GraphQL now supports deprecation of input values, see:

  • specs: https://github.com/graphql/graphql-spec/pull/525, and
  • reference implementation: https://github.com/graphql/graphql-js/pull/2855

It would be very useful if Juniper would support this as well. Juniper currently throws the following error:

error: attribute `Deprecation` can not be used inside of GraphQL input object

  = note: The macro is known to Juniper. However, not all valid #[graphql] attributes are available for each macro

Describe the solution you'd like

🤔

Describe alternatives you've considered

I am not aware of any other alternatives. This feels like a missing feature in Juniper itself.

Additional context

none

mrtnzlml avatar Jan 27 '21 14:01 mrtnzlml

Wondering why it's not in the spec yet, the explanation is here: https://github.com/graphql/graphql-spec/pull/525#issuecomment-830397550

tyranron avatar Aug 19 '22 15:08 tyranron

@tyranron Seems like this feature didn't make it into the latest spec release; however, might be worth mentioning that this feature was accepted, see: https://github.com/graphql/graphql-spec/pull/805

mrtnzlml avatar Sep 17 '22 01:09 mrtnzlml

@mrtnzlml nice, so we'll have it with the next spec release!

tyranron avatar Sep 19 '22 10:09 tyranron