Skip to content
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

How to bind resolvers to a schema in GraphQL #31

Open
stevan opened this issue Oct 17, 2018 · 0 comments
Open

How to bind resolvers to a schema in GraphQL #31

stevan opened this issue Oct 17, 2018 · 0 comments
Labels
question Further information/thought is requested/required

Comments

@stevan
Copy link
Owner

stevan commented Oct 17, 2018

We need a way to say, in pure GraphQL Type System language, that we want the schema to be bound to the resolvers from a given Perl namespace.

This is using Graph::QL::SchemaResolver::new_from_namespace under the hood of course.

Here is what I propose:

directive @resolvers(namespace: String!) on SCHEMA;

schema @resolvers(namespace: "My::GraphQL::Resolvers") {

}
@stevan stevan added the question Further information/thought is requested/required label Oct 17, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information/thought is requested/required
Projects
None yet
Development

No branches or pull requests

1 participant