-
Notifications
You must be signed in to change notification settings - Fork 55
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
Subscription and service level resolver #72
Comments
Without seeing the rest of your service definition its hard to figure out what's going on here. Can you make a repo with your services in it to give the full picture? |
Hi, Thanks for your fast answer. The services/employees.service.js file contains the relevant code. |
Sorry for faulty closing. The question is open. |
Hi, I dont understand well your code, but I have changed the service.js line 313 from:
to
So it is works now in playground.
It means for me, that the resolver doesn't work. |
@Hugome maybe could you help with it? |
The path in the error is "employee.gender", which mean that the resolution of this field has an error. {
"errors": [
{
"message": "Cannot read property 'call' of undefined",
"locations": [
{
"line": 4,
"column": 5
}
],
"path": [
"employee",
"gender"
],
"extensions": {
"code": "INTERNAL_SERVER_ERROR"
}
}
],
"data": {
"employee": null
}
} With a little of digging the |
Thank you very much @Hugome!
to
But not without this. Once more thank you. |
My problem is when I define resolvers in settings with graphql, resolvers works as expected when I call a query. But when I call subscriptions resolvers do not work.
This is the example definition:
Do I need to define other resolvers for subscriptions? I haven't found any example of using resolvers with subscriptions.
This works in the http://localhost:3000/graphql:
But this doesn't:
Sorry but I don't understand.
Thx
The text was updated successfully, but these errors were encountered: