top button
Flag Notify
    Connect to us
      Facebook Login
      Site Registration

Facebook Login
Site Registration

How to load .js file in MongoDB?

0 votes
78 views

I am new in mongodb I have a file homework2.js which I want to load in mongodb, I have tried both method

load("homework2.js")
load("c:mongodbscripthomework2.js")

I have installed mongodb in root c drive in mongodb folder and database path c:mongodbdatadb. I want to confirm which folder I will put this file and what command to load the said file.

posted Jun 20, 2017 by anonymous

Looking for an answer?  Promote on:
Facebook Share Button Twitter Share Button LinkedIn Share Button

Similar Questions
0 votes

Why use three config server in MongoDB and whats mechanism is used for the tree config server to implement the High availability and load balance?

+2 votes

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??

0 votes

is it possible to create views using the Node.js MongoDB Driver (3.0)? There is no db.createView() in the drivers API reference.

Contact Us
+91 9880187415
sales@queryhome.net
support@queryhome.net
#280, 3rd floor, 5th Main
6th Sector, HSR Layout
Bangalore-560102
Karnataka INDIA.
QUERY HOME
...