Support for aggregation queries? #1546
-
I was trying to build some sort of pagination for a collection, when I realized there's no way to easily get a count of all the records in a collection. It looks like Firebase introduced recently these "aggregation queries" that allows for exactly such a scenario. Is there any support planned for these? Or is there a way to already make sure of this? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You don't need anything specific from vuefire to use aggregated queries. Since they return a promise, you can already use them directly. e.g. in Nuxt, you can use |
Beta Was this translation helpful? Give feedback.
You don't need anything specific from vuefire to use aggregated queries. Since they return a promise, you can already use them directly. e.g. in Nuxt, you can use
await
or https://nuxt.com/docs/api/composables/use-async-data. Or you can use data loaders. It's really up to you!