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

Passing context to resolvers #26

Open
bbrown opened this issue Sep 11, 2019 · 0 comments
Open

Passing context to resolvers #26

bbrown opened this issue Sep 11, 2019 · 0 comments

Comments

@bbrown
Copy link

bbrown commented Sep 11, 2019

I'm working on migrating from hapi-graphql-2 and one of the things I'm stuck on is its context object. I used it to easily pass in the ORM models, current user, and a reference to a REST API.

There isn't anything like it in your library, is there? I looked around but couldn't find it.

(Obviously, I can just put these various references in the code but I liked the "cleanliness" of defining it at plugin registration and relying on its presence.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant