-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Promise support in the resolve() function #27
Comments
It should be possible to return promises in
|
Oh great. Didn't got it either from the code or the examples but I'll On Mon, Jul 6, 2015, 13:15 Mikhail Novikov [email protected] wrote:
|
Yep! we support returning Promises or Arrays of Promises. |
In response to graphql#27 and SO questions. I don't believe there is "official" documentation (besides in issues and tests) of Promise support in the resolve function. Totally willing to be wrong :)
I started to work on this graphql implementation in order to integrate it at least partially in our systems. We would like to stay very close to this implementation as much as we can as it may become the first community-supported implementation.
A feature we would need is the ability to wait Promise results when resolving. It doesn't seem that the current implementation support it.
I would like to discuss with you if you are open to support the addition of Promise responses. In this case, I can handle the Pull-request.
So if I were to implement this, I would do it like this:
We can discuss all of that if you wish of course!
The text was updated successfully, but these errors were encountered: