MathiasKandelborg/TRUE-framework

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

Summary

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

const siteConfig = groq`
  *[_id == "global-config"] {
    ...,
    logo {asset->{extension, url}},
    mainNavigation[] -> {
      ...,
      "title": page->title
    },
    footerNavigation[] -> {
      ...,
      "title": page->title
    },
    
  }[0]  
  `

export default siteConfig