How to use a Directive on a Query argument in ChilliCream GraphQL

Viewed 41

Scenario

I am using .NET Core 6 and ChilliCream v12 I want to use a custom Directive on certain arguments of queries and mutations.

I have been able to get Directives to work on fields of a Type but not on an argument of a Query/Mutation.

Here is a repo I made with a simple example.

This query below should show the directive working on the UserType's Name field but not on the userByEmail query's email argument:

query{
  userByEmail(email: "test") {
    id
    name
    email
  }
}
0 Answers
Related