Database in Mongodb, add information (Theft 3T)

1

I am working with mongodb, I have a collection of users, but it is empty, I want to add a user to the bd, I use Robo 3T, before I could do it quietly, I went Robo 3T, I connected, I went to the user collection and inserted a document, for example something like this:

{
            "_id" : ObjectId("59c1137fb9f9ab3a026e5e17"),
            "temporarytoken" : "false",
            "name" : "Alex Pepe",
            "email" : "[email protected]",
            "password" : "$2a$10$FjiQdyc8Uzem9PVDQXwg/eI8.FeKFD7D7maodEobB4O/3XT6vnm46",
            "username" : "alexPepe",
            "rota" : [ ],
            "holidays" : [ ],
            "pref" : [
                    {
                            "timePref1" : {
                                    "value" : "N/A",
                                    "name" : "N/A"
                            },
                            "timePref2" : {
                                    "value" : "N/A",
                                    "name" : "N/A"
                            },
                            "empType" : {
                                    "value" : "FT",
                                    "name" : "Full Time"
                            },
                            "shiftPref" : {
                                    "value" : "EM",
                                    "name" : "01:45 - 06:45 (Madrugada)"
                            }
                    }
            ],
            "permission" : "admin",
            "active" : true,
            "__v" : 2
    },

But he throws me wrong all the time

I have changed the brackets, added, removed, there is no way, always throws me an error similar to the one in the photo.

Since thank you very much for what you can help me.

Greetings!

    
asked by Chris 12.07.2018 в 13:43
source

0 answers