All FieldsResolver in my project returning null #997
Unanswered
igorwessel
asked this question in
Q&A
Replies: 1 comment 6 replies
-
Have you tried returning dummy data directly, skipping the loader/database code? |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello!
My english is very bad, so in advance sorry for english =D
I don't why FieldsResolver is returning null because i don't update anything in project
@FieldResolver(() => Tools, { nullable: true }) async tools(@Root() ninja: Ninja, @Ctx() { loaders: { ninjaToolLoader } }: IGraphQLContext): Promise<Tools[]> { const tools: Tools[] = await ninjaToolLoader.load(ninja.id); return tools; }
When I do a test with a request return null
I spent the whole morning and afternoon trying to solve it but I couldn't :/
Beta Was this translation helpful? Give feedback.
All reactions