Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to load external javascript file into Robomongo UI?

Tags:

robo3t

I want to load lodash while db scripting in RoboMongo's shell.

I've tried doing load('lodash.min.js') in my db script, but the shell doesn't see the library. The db script and the library are in the same directory.

like image 491
Maki Avatar asked Apr 18 '26 08:04

Maki


1 Answers

What I did as a workaround for now, was to set the absolute path for loading the library.

load('/absolute/path/to/the/library/');

like image 146
Maki Avatar answered Apr 19 '26 20:04

Maki



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!