db.create.User is not a function. Typo. Solved

can’t figure this one out

vagrant@m103:~$ mongo admin --host localhost:27000 --eval ’

db.create.User({

user: “m103-admin”,

pwd: “m103-pass”,

roles: [

{role: “root”,db:“admin”}

]

})

MongoDB shell version v3.6.9

connecting to: mongodb://localhost:27000/admin

Implicit session: session { “id” : UUID(“8a9c96f6-8a6e-4caf-a0d3-a18502aa53b0”) }

MongoDB server version: 3.6.9

2019-01-11T23:10:06.307+0000 E QUERY [thread1] TypeError: db.create.User is not a function :

The command is db.createUser not db.create.User.

Thanks See subject typo solved