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 new to making directives but I'm interested in trying to make one for ignoring certain fields from appearing in the Gateway stitched schema.
For example, a subschema may have a "ping" field on the Query type that I would want to ignore from stitching into the gateway schema. I understand I can use the rootFieldFilter to try and filterSchema but I was hoping to see if there is a way a subschema could define what fields they want the gateway to ignore.
Is this an idea worth exploring? What would be the best way to get started writing my own directive? I'm assuming the transformer and typedef for the directive would need to exist both on the gateway and the subschema
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
-
I'm new to making directives but I'm interested in trying to make one for ignoring certain fields from appearing in the Gateway stitched schema.
For example, a subschema may have a "ping" field on the
Query
type that I would want to ignore from stitching into the gateway schema. I understand I can use therootFieldFilter
to try andfilterSchema
but I was hoping to see if there is a way a subschema could define what fields they want the gateway to ignore.Is this an idea worth exploring? What would be the best way to get started writing my own directive? I'm assuming the transformer and typedef for the directive would need to exist both on the gateway and the subschema
Beta Was this translation helpful? Give feedback.
All reactions