Created
October 12, 2023 13:32
-
-
Save kishorek/c2b0d28dc05ceb5d77cd11a49879108e to your computer and use it in GitHub Desktop.
Mongo - Convert a string into number and use in a find query
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{$expr:{$gt:[{$toInt:"$field"},1]}} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment