Wednesday, 23 October 2019

mongo shell



http://www.dba86.com/docs/mongo/2.4/tutorial/getting-started-with-the-mongo-shell.html
http://www.dba86.com/docs/mongo/2.4/core/server-side-javascript.html

https://docs.mongodb.com/manual/mongo/

https://docs.mongodb.com/manual/reference/method/
https://docs.mongodb.com/manual/reference/command/#database-commands


i can only found above links and docs for mongoshell.

you can use js, but there is no document to tell you what function it has

e.g. console.log is native js function , but it doesn't support

and forEach function is not the Js array foreach function.

Note: monogoshell uses js shell.:
https://developer.mozilla.org/zh-CN/docs/Mozilla/Projects/SpiderMonkey/Introduction_to_the_JavaScript_shell



there is a build in js file called mongorc, which is a init script for monog shell. you can change to add predefine  functions.
https://docs.mongodb.com/manual/reference/program/mongo/#mongo-mongorc-file



it likes your system .bash_procfile.   it is under your ~/



No comments:

Post a comment