prisma-plugin: Query returning empty array #792
Unanswered
DimitReeis
asked this question in
Q&A
Replies: 1 comment
-
I don't see anything wrong with your code. Can you confirm you database actually has users associated with your posts? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey there!
I'm new to GraphQL, Prisma and Pothos and I am missing something but I don't exactly know what. I'm using Next.js and an implicit many-to-many relation and the query returns an empty array.
My code:
schema.prisma:
Post.ts:
When I query the following in the GraphQL-Playground:
This is the output:
I tried using queryType but I get an error that happens when the page is generating saying:
PothosSchemaError: Duplicate typename: Another type with name Query already exists.
#I appreciate any feedback!
Beta Was this translation helpful? Give feedback.
All reactions