Open IanButterworth opened 7 years ago
It would be helpful if the query shortcut worked for count as it does for find find
count
find
For instance, to find records that are not equal to a value:
for doc in find(collection, query("state" => ne("ma"))) ... end
The above works, but the following doesn't
numdocs = count(collection, query("state" => ne("ma")))
While it's not exactly the same, it seems that this works
numdocs = count(collection, Dict("state" => ne("ma")))
It would be helpful if the query shortcut worked for
count
as it does for findfind
For instance, to find records that are not equal to a value:
The above works, but the following doesn't
numdocs = count(collection, query("state" => ne("ma")))