on-internet
← Community

How to load scripts in MongoDB

Stack Overflow ·

I'm using MongoDB version 3.0 and I want to run script.js on database Problem I have find is that mongo is not seeing my file script.js. What I have done step by step: I have installed MongoDB in directory MongoDB\Server\3.0\bin\ I have put script.js inside \bin directory I want to do is run script.js using load() method I have got an error load("script.js") 2016-10-09T22:17:17.557+0200 E - file [script.js] doesn't exist 2016-10-09T22:17:17.558+0200 E QUERY Error: error loading js file: script.js at (shell):1:1 Probably I have put script.js in wrong place but where I should put it? Next step i

Comments

Sign in or sign up to comment and upvote.

No comments yet.