Why map transforms in object in MongoDB?
NickName:KristalkillPlay Ask DateTime:2021-06-15T01:29:47

Why map transforms in object in MongoDB?

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

enter image description here

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

More about “Why map transforms in object in MongoDB?” related questions

Why map transforms in object in MongoDB?

I had a problem. When i create map in MongoDB Example Shop guildID: id, ownerID: owner_id, _premium: 0, Moderation:{ auto:false, prefix:'k!',...

Show Detail

Any Javascript or Coffeescript `map` function that transforms object *values*?

Is there no ubiquitous/standard Javascript or Coffeescript function that Transforms the values of an object/map/hash? jQuery has $.map but it produces Arrays only. Underscore has _.map but it also

Show Detail

Spring Data MongoDB : how to partially map domain object to MongoDB?

Let's say we have four fields in a Java domain object. Instead of mapping all fields into the MongoDB document, are there ways to selectively map three fields to the MongoDB? public class Person ...

Show Detail

Why is the 'find' query returning a Query object in MongoDB?

I have already looked at many answers here at SO, but none of them solved my problem. I'm currently creating a project using node, express, and mongodb. I started with a seeder file to put some data

Show Detail

Why db object is not accessible from map function in Mongodb's Mapreduce?

In Mongodb's Mapreduce, Before I think there was "db"(like db.anotherCollection.find()) object accessible inside map function. But this features has been removed(from version 1.6 or so on), which m...

Show Detail

Mule Jaxb to object transforms to wrong object

I have an integration with some flows and JAXBcontext declared like this <mulexml:jaxb-context name="JaxbContext" packageNames="se.razorlib.SystemAProduct:se.razorlib.SystemAPurchase:se.razorlib.

Show Detail

Mongodb aggregate, object sum inside object

I'm trying to agregate data in mongoDb. This request perfectly works: db.getCollection('map').aggregate([ { $group: { _id: "$Support", gross: { $sum :"$Budget.Gross"},&#x

Show Detail

Multiple Transforms for an single object

Is there any possibility to use multiple transforms for an single object (i.e how to use ScaleTranform, CompositeTransform, and TranslateTransform on a single Ellipse). I tried using two transforms...

Show Detail

Debezium MongoDb - adding non metadata headers with ExtractNewDocumentState SMT not working

I'm having trouble adding an header from a document field (not metadata), which I'm able to do using the ExtractNewRecordState SMT on Postgres, but not using ExtractNewDocumentState on MongoDb. Thi...

Show Detail

Quick way to insert a structured Map[String,Any] object into mongodb

I have a JSON-like scala object consisting of any recursive collection of: scala.collection.Map[String,Any], scala.collection.Seq[Any], plus the basic types: Int, Float, String, Double, Long, which I

Show Detail