-
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 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I'm not aware of such library existing for |
Beta Was this translation helpful? Give feedback.
I'm not aware of such library existing for
graphql-core
(library Ariadne uses for GraphQL implementation).