GraphQL Query $where Clause Example #601
Answered
by
freakyfriday
freakyfriday
asked this question in
Q&A
-
Hello, I'm trying to query using the $where clause but am receiving a typed error. I'm following the example at https://payloadcms.com/docs/queries/overview#graphql-find-queries but still can't figure out why the type conversion is failing. Playground Query: Types: Any assistance would be greatly appreciated :-) Thanks |
Beta Was this translation helpful? Give feedback.
Answered by
freakyfriday
May 26, 2022
Replies: 1 comment 1 reply
-
If anyone is following I figured it out. I had to change the type of $where from JSON to Post_where: |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
freakyfriday
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If anyone is following I figured it out. I had to change the type of $where from JSON to Post_where: