Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New functionality: collection.count #60

Open
DevinFrenze opened this issue Jan 19, 2023 · 1 comment
Open

New functionality: collection.count #60

DevinFrenze opened this issue Jan 19, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@DevinFrenze
Copy link

I would love to see support for collection.count queries in rxdb-hooks. Do you think this would best work as a useRxCount hook or as part of the useRxData hook?

If you could offer your feedback and approve of a direction then I would be happy to try to implement this. I don't assume that the maintainers have time to implement every feature request.

@cvara
Copy link
Owner

cvara commented Jan 21, 2023

Hi @DevinFrenze. Thanks for bringing this up.

colleciton.count() has been added from rxdb version 13.8, so before adding support for it somehow, I would like to ensure compatibility between rxdb-hooks and rxdb 13. At the moment the only issue I can detect is #61 which I would say is a blocker. Once #61 is resolved, I would probably go about introducing a dedicated useRxCount hook to avoid overloading useRxData.

If you are still interested in giving it a go, I can ping you again once #61 is out of the way.

@cvara cvara added the enhancement New feature or request label Jan 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants