We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
An in-house framework at work handles input from multiple sources using a very elegant resolver system design:
Some examples would be:
The : separates the provider from the key-path that is used by the provider to resolve the value.
:
This could be handled with an extension to the directive system to allow it to be applied to variable definitions.
directive @default(from: String!) on VARIABLE_DEFINITION; query SomeQuery ( $user_id : ID @default(from: "request:user.id"), $top10_favs : [FavIDs] @default(from: "session:preferences.favorites.top10"), ) { user( id : $user_id ) { name birth { date { year } } favs: favorites( ids: $top10_favs ) } }
The GraphQL execution system will be aware of the directive, and then will fetch all the values using the key (ex: "request:user.id").
They are just annotations, so by default they do nothing, which means they are easy to test
We need to add it to libgraphqlparser
libgraphqlparser
I have a branch, but need to successfully test it
An older RFC to add support for it Now it is part of the current draft spec And it is supported in the reference implementation
The text was updated successfully, but these errors were encountered:
Sent a PR and it passed CI :)
graphql/libgraphqlparser#75
Sorry, something went wrong.
No branches or pull requests
An in-house framework at work handles input from multiple sources using a very elegant resolver system design:
Some examples would be:
The
:
separates the provider from the key-path that is used by the provider to resolve the value.This could be handled with an extension to the directive system to allow it to be applied to variable definitions.
Example:
The GraphQL execution system will be aware of the directive, and then will fetch all the values using the key (ex: "request:user.id").
They are just annotations, so by default they do nothing, which means they are easy to test
Related/Required
We need to add it to
libgraphqlparser
I have a branch, but need to successfully test it
Supporting Links
An older RFC to add support for it
Now it is part of the current draft spec
And it is supported in the reference implementation
The text was updated successfully, but these errors were encountered: