-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Converting directive arguments to a struct #717
Comments
#645 contains code for "input value coercion" (as part of execution) that returns a JSON map. "Deserializing" that map to a dedicated Rust struct definitely sounds interesting! It may be doable with |
Also note that input value coercion takes a map of variables values as a parameter, to handle |
I often write code like this:
It gets tedious when doing that for multiple directives with multiple arguments. Could we have a more automatic way of extracting directives and arguments?
As an example, if I had
directive @dir(arg1: String! arg2: Number)
, could I do this:The text was updated successfully, but these errors were encountered: