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 trying to use graphql shield with envelop's useLazyLoadedSchema to use public and private schema's conditionally based on authorization passed to context like below
So when we do this, shield may not be able to apply all rules to conditionally loaded schema so it throws the following expected error
It seems like you have applied rules to Query.getCompanies, Query.getReports fields but Shield cannot find them in your schema
is there any way we can suppress this error or make shield aware of the rules applied to non existing schema. instead of throwing error it should ignore it.
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 trying to use graphql shield with envelop's
useLazyLoadedSchema
to use public and private schema's conditionally based on authorization passed to context like belowSo when we do this, shield may not be able to apply all rules to conditionally loaded schema so it throws the following expected error
is there any way we can suppress this error or make shield aware of the rules applied to non existing schema. instead of throwing error it should ignore it.
Beta Was this translation helpful? Give feedback.
All reactions