This commit is contained in:
@@ -89,6 +89,23 @@ export const siteSettingsQuery = groq`
|
||||
}
|
||||
`;
|
||||
|
||||
// ── Products ───────────────────────────────────────────────────────────────
|
||||
|
||||
export const allProductsQuery = groq`
|
||||
*[_type == "product" && locale == $locale] | order(_createdAt desc) {
|
||||
_id, title, slug, description, price, currency, productType, purchaseUrl, featured,
|
||||
"coverImage": coverImage { asset->, alt }
|
||||
}
|
||||
`;
|
||||
|
||||
// ── Uses items ─────────────────────────────────────────────────────────────
|
||||
|
||||
export const allUsesItemsQuery = groq`
|
||||
*[_type == "usesItem"] | order(category asc, title asc) {
|
||||
_id, title, description, category, url, "image": image { asset-> }
|
||||
}
|
||||
`;
|
||||
|
||||
// ── RSS (all fa posts) ─────────────────────────────────────────────────────
|
||||
|
||||
export const rssPostsQuery = groq`
|
||||
|
||||
Reference in New Issue
Block a user