I had a problem.
When i create map in MongoDB
Example Shop
guildID: id,
ownerID: owner_id,
_premium: 0,
Moderation:{
auto:false,
prefix:'k!',
muterole:0,
language: preferredLocale
},
Economy: {
shop:new Map(),
upXP:100,
bonus:50,
money:3,
xp:5
},
options:{
boxes:false
}
Its create a object
How to fix it?
I use MongoDB(not mongoose)
Copyright Notice:Content Author:「KristalkillPlay」,Reproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/67974733/why-map-transforms-in-object-in-mongodb