I've both the main version and v1 alpha, but no matter what I try, I get
ℹ [default] Found 0 candidate files
⚠ [default] Found 0 queries from 0 files.
Even with a simple groq query in a typescript file:
groq`*[_type == "siteSettings"][0]{
title,
description
}`
I've also tried wrapping it in codegen as follows:
import { codegen, groq } from '@sanity-codegen/client'
const query = codegen(
// the query key:
'SiteSettings',
// the query (must be wrapped in groq``):
groq`*[_type == "siteSettings"][0]{
title,
description
}`
)
but I get the same result. How does sanity-codegen find queries / how can I point it in the direction of my queries so that the types are generated for them?
I've both the main version and v1 alpha, but no matter what I try, I get
Even with a simple groq query in a typescript file:
I've also tried wrapping it in
codegenas follows:but I get the same result. How does sanity-codegen find queries / how can I point it in the direction of my queries so that the types are generated for them?