A chat room in letschat was archived. To revive it we can alter the document in the MongoDB instance.
Login into the MongoDB instance with the CLI or Web console.
> show dbs
admin 0.000GB
letschat 0.001GB
local 0.000GB
Switch
> use letschat
switched to db letschat
Check information types
> show collections
files
messages
migrootions
rooms
sessions
usermessages
users
Print all documents from a collection
> db.rooms.find().pretty()
Find document by attribute
> db.rooms.find({slug:"elk"}).pretty()
{
"_id" : ObjectId("59a666cfa9886c002c30b404"),
"owner" : ObjectId("59a547c2aed276003facf84f"),
"name" : "Elasticsearch, Logstash and Kibana",
"slug" : "elk",
"description" : "Everything about the Elasticsearch Universe, including Logstash, Beats",
"private" : false,
"lastActive" : ISODate("2017-08-31T08:46:33.690Z"),
"created" : ISODate("2017-08-30T07:18:39.885Z"),
"messages" : [ ],
"participants" : [ ],
"archived" : true,
"__v" : 0
}
Update document
> db.rooms.update(
... { slug: "elk" },
... {
... $set: { archived: false }
... }
... );
WriteResult({ "nMatched" : 1, "nUpserted" : 0, "nModified" : 1 })