Loading 10-troubleshooting.md +8 −0 Original line number Diff line number Diff line Loading @@ -102,6 +102,14 @@ use osm; db.getCollectionNames() db.k8sclusters.find().pretty() db.k8sclusters.deleteOne({"_id":"21323ef6-23ec-4f33-8171-dcc863aa9832"}) db.okas.find().pretty() db.okas.find({}, { _id: 1, name: 1}).pretty() db.okas.find({}, { _id: 1, name: 1, _admin: {usageState: 1}}).pretty() db.okas.find({ "_admin.usageState": "IN_USE" }, { _id: 1, name: 1, "_admin.usageState": 1 }).pretty() db.okas.updateOne( { name: "oka_name") }, // Filter: the document to update { $set: { field_to_update: "new_value" } } // Update: the field and new new value ) ``` ## Troubleshooting installation Loading Loading
10-troubleshooting.md +8 −0 Original line number Diff line number Diff line Loading @@ -102,6 +102,14 @@ use osm; db.getCollectionNames() db.k8sclusters.find().pretty() db.k8sclusters.deleteOne({"_id":"21323ef6-23ec-4f33-8171-dcc863aa9832"}) db.okas.find().pretty() db.okas.find({}, { _id: 1, name: 1}).pretty() db.okas.find({}, { _id: 1, name: 1, _admin: {usageState: 1}}).pretty() db.okas.find({ "_admin.usageState": "IN_USE" }, { _id: 1, name: 1, "_admin.usageState": 1 }).pretty() db.okas.updateOne( { name: "oka_name") }, // Filter: the document to update { $set: { field_to_update: "new_value" } } // Update: the field and new new value ) ``` ## Troubleshooting installation Loading