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'm looking to create a custom directive for my GraphQL server. I want my server to omit certain fields conditionally, based on the value of the fields that are decorated with the directive.
For example:
{
allSites {
siteId @overN(n:4)
siteName
}
}
Would return all sites and their names, but only include their siteId if its value is over 4.
Is there any documentation or an API I could read so I can see the best practice when adding a new directive?