In a collection i have a value of object more than 1 element, suppose if I want to update the value of one of the elements of the object, how do I do so without overwriting the whole object?
Eg -
// original collection.
Collection(1) [Map] {
'968129136818266192' => {
players: [ [Promise] ],
text_channel: '968129064030310460',
map: 'none',
highest_votes: 0,
total_votes: 0,
map_wise_votes: []
}
}
// After using collection.set(key, { players: 'something' });
Collection(1) [Map] {
'968129136818266192' => { players: [ [Promise] ] }
}
doing this overwrites the data but I dont want that, I only want to update the value of players and keep the rest of the data as it is.