✨Discover storytelling in the AI age with Pixar's Matthew Luhn at Sanity Connect, May 8th—register now

sanity documents query *[_id in path("/somePath")] currently returning bad pattern

4 replies
Last updated: Oct 1, 2020
Morning, all! Any GROQ folks out there who can tell me what’s wrong with my query? Stumped!
sanity documents query *[_id in path("/somePath")]
currently returning
bad pattern: *[_id
Oct 1, 2020, 1:14 PM
The query needs to be a string
sanity documents query "*[_id in path('somePath')]"

Also you can't have slashes in your path, I think
Oct 1, 2020, 1:27 PM
The query needs to be a string
sanity documents query "*[_id in path('somePath')]"

Also you can't have slashes in your path, I think
Oct 1, 2020, 1:27 PM
🤦
Oct 1, 2020, 1:31 PM
Thanks
user J
Oct 1, 2020, 1:31 PM

Sanity– build remarkable experiences at scale

Sanity is a modern headless CMS that treats content as data to power your digital business. Free to get started, and pay-as-you-go on all plans.

Was this answer helpful?