Skip to content

Instantly share code, notes, and snippets.

@felinto-dev
Last active May 15, 2021 14:29
Show Gist options
  • Save felinto-dev/06fbab691d310f8380b4dc2b7f5650eb to your computer and use it in GitHub Desktop.
Save felinto-dev/06fbab691d310f8380b4dc2b7f5650eb to your computer and use it in GitHub Desktop.
// Get products that does not have item
db.getCollection('gplzone').find({ 'item': { $exists: false } })
// Get products that has notes associated
db.getCollection('gplzone').find({ 'note': { $exists: true } })
// Get products that was not possible to scrape zip content
db.getCollection('gplzone').find({
'item.product_version.is_double_zipped': true
})
// Get products that has log but does not has seen_at
db.getCollection('gplzone').find({
$and: [
{ 'log': { $exists: true } },
{ 'seen_at': { $exists: false } },
]
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment