|
Hello! I am wondering if there is a library that allows me to get the requested fields on the object of a current resolver. You'd need to parse info ( https://www.npmjs.com/package/graphql-parse-resolve-info (see Stack Overflow question here). My use case is that I want to add directives to a certain object like so: type MyObject {
id: ID! @public
field: String! @public
otherField: [SomeOtherObject!]!
}And then check in a resolver if only public fields are being requested (those with |
Answered by
rafalp
Aug 6, 2021
Replies: 1 comment
|
I'm not aware of such library existing for |
0 replies
Answer selected by
bartenra
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm not aware of such library existing for
graphql-core(library Ariadne uses for GraphQL implementation).