chroma icon indicating copy to clipboard operation
chroma copied to clipboard

Support `where` filters on `.count()`

Open jeffchuber opened this issue 2 years ago • 3 comments

This came up in discord.

https://discord.com/channels/1073293645303795742/1074711446589542552/1125374138601717800

The idea would be to plumb where through to .count like we do for get/query/delete

jeffchuber avatar Jul 06 '23 15:07 jeffchuber

hi, @jeffchuber Do we also need to plumb where_doc in it?

sunilkumardash9 avatar Aug 05 '23 07:08 sunilkumardash9

@sunilkumardash9 - we could... but I think id ship the initial version of this without it. I think of count like get - but instead of returning the items, it just returns an int

do you want to take a stab at this?

jeffchuber avatar Aug 05 '23 13:08 jeffchuber

@jeffchuber Yeah I am almost ready with PR with where and where_doc. Wanted confirm if we need this.

sunilkumardash9 avatar Aug 05 '23 13:08 sunilkumardash9