graphql/shield/docs/advanced/fragments #1521
Replies: 1 comment 1 reply
-
I have a doubt with fragmentReplacements. I am testing the graphql shield with Yoga using UrlLoader from a remote GraphQl server. const hasFieldPermission = rule({
cache: 'strict',
fragment: `
fragment navigationMainAccessRestrictionFrag on NavigationMain {
brands
locations
channels
}
}
`,
})(async (parent, args, { ctx }, info) => {
// const { brands, locations, channels } = parent
console.log('ACCESS', parent)
//... do some thing
return false
}) The I think that I need do something with |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
graphql/shield/docs/advanced/fragments
GraphQL Shield Documentation
https://the-guild.dev/graphql/shield/docs/advanced/fragments
Beta Was this translation helpful? Give feedback.
All reactions