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

Dependency injection? #16

Closed
nripendra opened this issue Apr 23, 2018 · 2 comments
Closed

Dependency injection? #16

nripendra opened this issue Apr 23, 2018 · 2 comments

Comments

@nripendra
Copy link

How to inject dependencies using Containers like typedi?

Is context good place to get things like di?

@pie6k
Copy link
Collaborator

pie6k commented Apr 24, 2018

I'll explore this topic a bit and let you know. But in general, everything you create with typegql is based on simple javascript classes so it's propably not preventing you from using it.

If you can, let me know about some example of good API that would allow you to use it comfortably.

@pie6k
Copy link
Collaborator

pie6k commented May 25, 2018

#39 - @nripendra - It's now possible as schema roots have instances.

@pie6k pie6k closed this as completed May 25, 2018
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

2 participants