skip to Main Content

Mongodb – Create an object to already existing collection

I have a collection "product_reviews" with this document structure { _id: 'B000000OE4', 'product/title': 'Working Class Hero', 'product/price': '16.99', reviews: [ { 'review/userId': 'unknown', 'review/profileName': 'unknown', 'review/helpfulness': '2/3', 'review/score': '4.0', 'review/time': '27/05/1999/00:00:00', 'review/summary': 'Worth it for one song', 'review/text': "I really…

VIEW QUESTION

How to restore dump backup in mongodb

I have restore-63bbdc996664dc2524cce24d.tar file, I am restoring it in the MongoDB database tried these commands mongodump --db test --gzip --archive=restore-63bbdc996664dc2524cce24d.tar mongodump --db test --archive=restore-63bbdc996664dc2524cce24d.tar mongodump --host localhost --port 27017 --db test --gzip --archive=restore-63bbdc996664dc2524cce24d.tar mongorestore --drop C:Usersrustamrestore-63bbdc996664dc2524cce24d.tar.gz -v error => Failed:…

VIEW QUESTION

Error E11000 in creating MongoDB unique index

I have a MongoDB(v 5.0.6) collection with the following data: [{ "_id": { "$oid": "63bc06e6aa310000d6004a68" }, "key": "title", "label": "title", "type": "text", "searchable": 0 },{ "_id": { "$oid": "63bc06e6aa310000d6004a69" }, "key": "attribution", "label": "attribution", "type": "text", "searchable": 0 },{ "_id":…

VIEW QUESTION
Back To Top
Search