MathiasKandelborg/TRUE-framework

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

Summary

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

const categoryBySlug = groq`*[_type == "category" && url.current == $slug][0]{
  ...
}`

export default categoryBySlug