sanity icon indicating copy to clipboard operation
sanity copied to clipboard

Error: "expected '}' following object body" - when trying to fetch multiple types

Open enadot opened this issue 2 years ago • 1 comments

Hi,

I'm getting this "expected '}' following object body" error when trying to fetch 2 different types.

Here's the query I'm trying to execute:

image

Have anyone an idea what I am missing?

Thank you!

enadot avatar Jun 26 '22 13:06 enadot

You should use > instead of >. If you want to encode your query for URL fetching, you should type you query in plain text and use encodeURIComponent().

sixclones avatar Jul 04 '22 13:07 sixclones