When the console log in the resolver prints out th...
# orm-help
j
When the console log in the resolver prints out the data in my where argument I get {"id":"cjt7rt42100350706ie9b3ssn"}, so I am not sure why the error message says it found {\"where\":{\"id\":\"cjt7rt42100350706ie9b3ssn\"}}
w
You basically have 2 where statements
one in your query, one in your variables
should work if your remove the where:" parent from your parameter
so just paste in the id:
Copy code
{
"id":"cjt7rt42100350706ie9b3ssn"
},
j
I just figured it out. I had my query written as ctx.prisma.user({ where }) when it should have been user(where). Thanks for the quick reply.
w
You're welcome, enjoy and goodluck on your journey 😄