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} }`
Something like this should work.
*[_type in ["homepage", "faq", "contact"]]{slug}
Copyright © 2021 Jogjafile Inc.
Something like this should work.