I want to fetch multiple pages within a single query.
My code is causing errors
const pagesQuery = groq`{
*[_type == 'homepage']{slug},
*[_type == 'faq']{slug},
*[_type == 'contact']{slug}
}`
I want to fetch multiple pages within a single query.
My code is causing errors
const pagesQuery = groq`{
*[_type == 'homepage']{slug},
*[_type == 'faq']{slug},
*[_type == 'contact']{slug}
}`
Copyright © 2021 Jogjafile Inc.
Something like this should work.