top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

Is it possible to write something like ".sql" file in mongoDB as well and how to run?

+2 votes
351 views

As we can write ".sql" file in sql for creating schema and other commands. can we also write the similar something like ".nosql" or ".mongodb" file??

posted Jul 5, 2015 by Prakash Singh

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

+1 vote

MongoDB, unsurprisingly, uses JavaScript for "scripting". You "invoke the scripts with the MongoDB shell. Here is the link to the documentation for writing scripts and the differences with the shell.

http://docs.mongodb.org/manual/tutorial/write-scripts-for-the-mongo-shell/

answer Jul 5, 2015 by anonymous
...