Is the bound key required when reading an aggregate count with namespace?
First, I have defined an aggregation like so:
Second, in the code, this is how I connect it with the table
payments
And finally, jere I'm attempting to read the count from it:
But typescript screams:
Is the bound
property mandatory here? In my particular scenarion, I would like to get the total count of records and not just a part6 Replies
Thanks for posting in <#1088161997662724167>.
Reminder: If you have a Convex Pro account, use the Convex Dashboard to file support tickets.
- Provide context: What are you trying to achieve, what is the end-user interaction, what are you seeing? (full error message, command output, etc.)
- Use search.convex.dev to search Docs, Stack, and Discord all at once.
- Additionally, you can post your questions in the Convex Community's <#1228095053885476985> channel to receive a response from AI.
- Avoid tagging staff unless specifically instructed.
Thank you!
good feature request. as a workaround until it's supported, i think you can do
bounds: {}
and it will get you everythingI just added
bounds: {}
. But it requires at least prefix
(lower and upper are optional). What value should I give to "prefix"?hmm it shouldn't require
prefix
. can you share the error message?
it works for me with bounds: {}
Apologies, it is not required (this was an unrelated eslint error...)
looks like there's already a feature request i hadn't noticed before 🙈 https://github.com/get-convex/aggregate/issues/22