Closed muccy closed 3 months ago
Yup looks like a bug in the client where the type has been set to a Map instead of dynamic.
This is now fixed in the latest version: ^1.2.2, with a test as well. Please update and try again @muccy. I'll close it once you verify.
Closing it for now ... pls reopen if this is still an issue
I'm using
sanity_client: ^1.2.1
but I cannot complete a basic query like:The reported error is:
Looking at the JSON Serializable generated code I see:
But
json["result"]
isn't a Map, but a List.I could think about a fix, but I don't know if you set Map type for a reason (I'm totally unexperienced with Sanity.io and GROQ)