I’m not being able to run a MongoDB .count().
@stats = ts.count({"from" => "xpto@com"})
And I get the following error:
wrong number of arguments (1 for 0)
What am I missing here? The documentation says it should work.
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
ts.find({“from” => “xpto@com”}).count()