./mongo server:27017/dbname --quiet my_commands.js
В my_commands.js:
db.users.insert({name:"john", email:"[email protected]", age:12});
./mongo server:27017/dbname --quiet my_commands.js
В my_commands.js:
db.users.insert({name:"john", email:"[email protected]", age:12});