skip to Main Content

Value not saving in mongodb

const serverS = await server.findOne({ guildID: message.guild.id }); serverS.settings[1]["links"] = true; serverS.save() The code I use ^^^^ So when it saves the changes I check the database using MongoDB compass I don't see the change appearing in the array object…

VIEW QUESTION

extract subdocument in mongoDB

I am new to MongoDB and I'm struggling in extract a subdocument from a document. In my case, I have the following schema: [ { user_id: "u1", subscriptions: [ { "tier": "Basic", "requests": [ { "name": "aaaa" }, { "name":…

VIEW QUESTION

Android Studio – Add additional item to an item in model class array list

I have a data class @Parcelize data class PublicationPageModel( @SerializedName("pageNumber") val pageNumber: Int, @SerializedName("content") val content: String ): Parcelable I already added items to the array like this: private var publicationPageModel: ArrayList<PublicationPageModel> = arrayListOf() publicationPageModel.add(PublicationPageModel(finalPageNumber, fileContent)) Now, I want to…

VIEW QUESTION
Back To Top
Search