graphiql icon indicating copy to clipboard operation
graphiql copied to clipboard

[graphiql] Support deprecated argument on query arguments

Open JulienVerbrugge opened this issue 1 year ago • 3 comments

GraphiQL support for deprecated fields is great but it does not cover the query arguments.

Depreciation on field image

Depreciation on argument image

Since GraphQL arguments object handle depreciation, it could be great to extend this functionality to argument. From type/definition.ts

export interface GraphQLArgumentConfig {
  description?: Maybe<string>;
  type: GraphQLInputType;
  defaultValue?: unknown;
  deprecationReason?: Maybe<string>;
  extensions?: Maybe<Readonly<GraphQLArgumentExtensions>>;
  astNode?: Maybe<InputValueDefinitionNode>;
}

Thanks

JulienVerbrugge avatar Feb 20 '24 13:02 JulienVerbrugge

ah yes this is a new spec feature as of a few years ago, thanks for bringing it up!

I would invite you to contribute a fix, but the dev tooling is kinda annoying at the moment, so proceed at your own risk haha. Happy to help with instructions - just yarn at root first then yarn tsc at root, then simultaneously yarn dev in graphiql-react and yarn dev-graphiql at the root 😆 eventually we will have pnpm and turborepo, but for now bless this mess haha

acao avatar Feb 20 '24 22:02 acao

👋 @acao – would you say that the dev tooling situation has improved? I also came here looking for this 👀

brodin avatar Mar 19 '24 14:03 brodin

no it has not, for years, but that doesn't stop contributors almost daily! 😂

acao avatar Mar 19 '24 20:03 acao