Deprecated fields are not visible in Graphiql #1526
Replies: 1 comment 2 replies
-
We don't own this in the framework. We simply use this : https://www.npmjs.com/package/graphiql |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Greetings!
I'm relatively new to GraphQL and the DGS framework, so I might be doing something wrong here. Anyway, I am trying to deprecate some fields in our schema using the @deprecated(reason: "reason") directive. When I add the directive, the deprecated fields are no longer visible in GraphiQL and if I try to use the deprecated field in a query I get this error message: "Field is not defined by type . Did you mean <other field name 1> or <other field name 2>?"
Do I need to do something special to see/use deprecated fields?
FYI - here are the relevant items from my build.gradle.kts:
plugins {
...
id("com.netflix.dgs.codegen") version "5.7.1"
id("org.springframework.boot") version "3.0.6"
}
dependencies {
...
implementation(platform("com.netflix.graphql.dgs:graphql-dgs-platform-dependencies:6.0.3"))
implementation("com.netflix.graphql.dgs:graphql-dgs-extended-scalars")
implementation("com.netflix.graphql.dgs:graphql-dgs-spring-boot-starter")
implementation("com.netflix.graphql.dgs:graphql-dgs-pagination")
...
}
Thanks!
Paul
Beta Was this translation helpful? Give feedback.
All reactions