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.
Thank you for opening an issue. We will get back to you as soon as we can. Have you seen our Open Collective page? Please consider contributing financially to our project. This will help us involve more contributors and get to issues like yours faster.
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.
Originally posted by @ethdev279 in #1423
The text was updated successfully, but these errors were encountered: