-
Notifications
You must be signed in to change notification settings - Fork 3
XX[OLD] Useful MongoDB Queries
Peter Mangiafico edited this page Mar 27, 2019
·
1 revision
See
- https://docs.mongodb.com/manual/tutorial/query-documents/
- https://github.com/sul-dlss/sul-pub-mongo
A mongo query to find SW records without a WoSItemID
value, i.e.:
db.getCollection('publications').find({provenance: "sciencewire", "identifier.type": {$ne: "WoSItemID"} }).count()
To inspect some data, using a projection:
db.getCollection('publications').find({provenance: "sciencewire", "identifier.type": {$ne: "WoSItemID"} }, { provenance: true, identifier: true }).limit(10)