Created
December 20, 2012 20:47
-
-
Save shanestillwell/4348419 to your computer and use it in GitHub Desktop.
Finding MongoDB array that is NOT empty but exists
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
db.device.find({"deviceTokens":{"$not":{"$size":0},$exists: 1}}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment