I need the count of filtered records in a collection. I am using count method with filter criteria. For filter criteria, I am using" Filters.eq(key, value) method but I am not getting the zero result though it has the document with that filter criteria.
If any one has used Filter class then please let me know what wrong I am doing.
I am able to solve this issue and the problem is, Mongodb is case sensitive and key name i suppose to pass should be in upper case but i was passing it in lower case.
Silly mistake but it wasted my lot of time. Lesson learned.
Those cherries would go best on cherry cheesecake. Don't put those cherries on this tiny ad:
a bit of art, as a gift, the permaculture playing cards