#How to debug GraphQl Execution?

10 messages · Page 1 of 1 (latest)

lyric tulip
#

I have split up a service into user and auth. Both have resolvers and part of the schema. When I try to call the login mutation it is not callable but in the schema it is available. How can I find the spot where nestjs or the graphqlmodule is trying to look for the resolver?

indigo needle
#

When I try to call the login mutation it is not callable
Are you getting an error?

lyric tulip
#

In my case I get cannot return non nullable value for mutation login

#

I think have found a solution but I do not know why

#

I added the AuthModule to the typeorm modul config and now it seems to work

#

I have no idea why

#

there is no forFeature or repository in the auth module and why do I have to add it when it is for graphql and not typeorm

#

ouch

#

it was not typeorm it was imports doh

#

unsuprisingly the app module wasn't aware of the module at all