Last active
September 9, 2020 05:47
-
-
Save dublado/0f135a19c69ee00cfa3c397e441b4c9b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
db.system.js.insertOne({ | |
_id:"lafuncion", //functionName | |
value: function getAllCollectionsSizes(){print('tis a function')} //function content | |
}); | |
//useful commands | |
//to see servers functions | |
db.system.js.find(); | |
//to load the server funtions | |
db.loadServerScripts(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment