You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 26, 2024. It is now read-only.
Does the codegen client need to statically analyse the query? Because snippets like this work fine with the standard sanity client (not sure if it's common practice or not, I'm coming from a graphql background and was missing my fragments)
The text was updated successfully, but these errors were encountered:
I'm trying to use query snippets/fragments exported from a shared lib to reduce boilerplate, but the codegen client throws the following error:
The basic shape of what I'm trying to do:
fragments.ts
query.ts
Removing the ${...} snippet fixes the issue.
Does the codegen client need to statically analyse the query? Because snippets like this work fine with the standard sanity client (not sure if it's common practice or not, I'm coming from a graphql background and was missing my fragments)
The text was updated successfully, but these errors were encountered: