This feature is experimental. MongoDB does not provide support for Snippets. This feature may be changed or removed at any time without prior notice.
Bugs are not expected, however should you encounter one, please open an issue in the GitHub repository for this project.
These options control the interaction between
and the package manager that tracks individual snippet packages. For
more details about how a particular snippet works, see the
documentation for that snippet.
To modify the snippet configuration settings, use the following method:
Automatically load installed snippets at startup.
The npm registry that the
Configure a second, private registry for sensitive snippets by adding a
config.set('snippetIndexSourceURLs', 'https://github.com/YOUR_COMPANY/PATH_TO_YOUR_REGISTRY/index.bson.br;' + config.get('snippetIndexSourceURLs') )
mongosh for the update to take effect.
The snippets feature requires an index source URL to function. Unset
this value then restart
mongosh to disable snippets.
mongosh --nodb --eval 'config.set("snippetIndexSourceURLs", "")'