You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a use case where I need to intercept the object at runtime if a directive is applied on the type object. Something like this is
achievable using directive at field level using below piece of code.
environment.getCodeRegistry().getDataFetcher((GraphQLObjectType) parentType, field); link
Is it possible to do the same for directives at object level ??
type Show @policy(id: [["r.id.access"]]) {
title: String
releaseYear: Int
}
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a use case where I need to intercept the object at runtime if a directive is applied on the type object. Something like this is
achievable using directive at field level using below piece of code.
environment.getCodeRegistry().getDataFetcher((GraphQLObjectType) parentType, field);
link
Is it possible to do the same for directives at object level ??
Beta Was this translation helpful? Give feedback.
All reactions