What I wanna achieve is to call all documents under the type name gallery. For this case, I need to use query and predicates. This fetch happens in components/gallery.vue, not in page that is why I can not use asyncData() as it can be used only in pages.
If I directly open this route with gallery.vue component inside the page in the browser it fetches all documents. But if come to this route from homepage or another route it returns null. The thing I wanna find out is if query and predicates work inside components using fetch otherwise I do workaround.