Support for aggregation queries? #1546
Answered
by
posva
Cry0nicS
asked this question in
Questions and Help
-
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.
Answered by
posva
Jun 24, 2024
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.
1 reply
Answer selected by
Cry0nicS
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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!