MongoDb Script Global variables

I was wondering if there was a way to have phpstorm or webstorm understand my mongo scripts. For exampel with NodeJs I can assign the NodeJs Globals Library definitions to a file and then the editor recognized tghings like the  require() method.
Is there anything for mongo?
It would be very nice to have that as I write a lot of mongo scripts in javascript files.

1 comment


what do your mongo scripts look like? Are you using any node modules (mongodb, mongoose) to work with mongo from javascript?


Please sign in to leave a comment.