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
@freakyfriday — I can do you one better.
While your syntax DOES work, the better way would be like this:
No $
needed. Just use the where
argument!
Star
Discord
online
Get help straight from the Payload team with an Enterprise License.