MathiasKandelborg/TRUE-framework

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

Summary

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

const singleProductFromSlug = groq`
*[_type == "product" && url.current == $slug][0]{
  ...
}
`
export default singleProductFromSlug