Created
February 5, 2020 18:18
-
-
Save DesignFront/1fc8734606f9d06c70165826eaf2f33d to your computer and use it in GitHub Desktop.
Mongo queries
This file contains hidden or 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
// Find (not equal to): | |
db.getCollection('Task').find({type: {$ne: 1}}) | |
db.getCollection('documents').find({'pages.zones.regex': {$exists: true, $ne: ''}}) | |
// Detect non empty strings | |
db.getCollection('DocumentDefinition').find({'pages.zones.regex': /(.|\s)*\S(.|\s)*/}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment