question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to add a deprecationReason to a GraphQL field?

See original GitHub issue

The intended generator output is like (copied from https://docs.nestjs.com/graphql/resolvers):

@Field({ description: `Book title`, deprecationReason: 'Not useful in v2 schema' })
title: string;

Thanks!

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
github-actions[bot]commented, May 6, 2022

🎉 This issue has been resolved in version 15.3.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Read more comments on GitHub >

github_iconTop Results From Across the Web

Field deprecation | Lift-off V: Production & the Schema Registry
A common situation for an evolving graph is to deprecate an existing schema field in favor of a new field. Let's see how...
Read more >
Deprecation - GraphQL - Dgraph
The @deprecated directive allows you to tag the schema definition of a field or enum value as deprecated with an optional reason. When...
Read more >
How to deprecate fields in GraphQL | by Kevin Simper - Medium
You can very easily deprecate a field and if you are using GraphiQL it ... When you add a deprecationReason it will automatically...
Read more >
Deprecation of input fields · Issue #197 · graphql ... - GitHub
One possible workaround is to create a new field with different input, ... was just given isDeprecated and deprecationReason fields, ...
Read more >
Versioning fields in GraphQL - LogRocket Blog
Whenever the change is non-breaking, as when adding a new type or field, ... isDeprecated and deprecationReason on the Field and Enum types:...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found