Difference between revisions of "MongoDB JS Files"

From mi-linux
Jump to navigationJump to search
(Created page with "Main Page >> MongoDB >>MongoDB Workbook >> JavaScript Files == Query Files == The Mongo Shell used mi-linux understands JavaScript code.")
 
Line 3: Line 3:
 
== Query Files ==
 
== Query Files ==
  
The Mongo Shell used mi-linux understands JavaScript code.
+
The Mongo Shell used mi-linux is an interactive JavaScript interface to MongoDB. As you have seen the mongo shell can be used to query and update your data.
 +
 
 +
So far the query examples seen are not saved for future use. The data will be stored in the database, but not the queries used.
 +
 
 +
If you wish to save a query, a text editor should be used to create a ''.js'' file. If you are familiar with '''vi''', this can be used to create the field outside MongoDB. If you do not know how to use '''vi''' then it is probably easier if you use something like NotePad++ to create the field, then ftp it to mi-linux using a ftp client, such as '''FireZilla'''.
 +
 
 +
 
 +
== Next Step ==
 +
 
 +
Return to the [[MongoDB_Workbook|Workbook]].

Revision as of 16:04, 24 October 2016

Main Page >> MongoDB >>MongoDB Workbook >> JavaScript Files

Query Files

The Mongo Shell used mi-linux is an interactive JavaScript interface to MongoDB. As you have seen the mongo shell can be used to query and update your data.

So far the query examples seen are not saved for future use. The data will be stored in the database, but not the queries used.

If you wish to save a query, a text editor should be used to create a .js file. If you are familiar with vi, this can be used to create the field outside MongoDB. If you do not know how to use vi then it is probably easier if you use something like NotePad++ to create the field, then ftp it to mi-linux using a ftp client, such as FireZilla.


Next Step

Return to the Workbook.