MathiasKandelborg/TRUE-framework

View on GitHub
util/api/queries/allProducts.ts

Summary

Maintainability
A
0 mins
Test Coverage
import groq from 'groq'

const allProducts = groq`*[_type == "product"]{
  ...,
  categories[] -> { ... }
}`

export default allProducts