Skip to content

Instantly share code, notes, and snippets.

@dublado
Last active September 9, 2020 05:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dublado/0f135a19c69ee00cfa3c397e441b4c9b to your computer and use it in GitHub Desktop.
Save dublado/0f135a19c69ee00cfa3c397e441b4c9b to your computer and use it in GitHub Desktop.
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