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
Hi there, thanks for getting in touch! Unfortunately, Mercurius Auth does not currently support defining policies at the argument level, only at the field and type level (and a short-term workaround using a field-level directive for avoiding policy checks in execution logic wouldn't be type-safe).
Would you be interested in getting with potentially adding support for auth policies for inputs?
We are using mercurius with fastify in this server setup.
We have an archetype validator directive in which works pretty sweet in the Query,Mutation, Subscription, and field resolvers.
But the issue arises when the directive is applied in the arguments. It doesn't trigger the directive's validator function.
have even tried it with
INPUT_FIELD_DEFINITION | INPUT_OBJECT
example mutation:
registering directive:
The text was updated successfully, but these errors were encountered: