How many rs can you find in:
My Find operation in Mongodb Node is not working.
Here I’m fetching the data with the email [email protected] and it works as expected.
Typing email as Email won’t work.
Same for the value. If I pass the data as [email protected] it won’t return any data.
Hi @mcnaveen, I did try finding all and it works but when i try it with an expression it doesnt work.
Here is the expression. It looks right to me as I have checked spelling of the variable against the one in the db.
Can you try turning on this option and check?
Hey, @mcnaveen , I tried and it works but then it shows that no JSON data is found but in reality there are data that is being passed on to the Mongo find node. Is there any reason to why this is happening?
I figured out what my issue was! Thank you so much for your help!
Its a very silly mistake, I realized that since the variable that I wanted to filter was integer, I just had to remove the apostrophes and it worked perfectly.
In JavaScript 1 is not equal to 1.
If it’s wrapped with Single or Double Quotes it’s a string. Not a number.
Glad you found the issue and fixed it.
user
The passage contains 45 "r"s.
assistant