Skip to content

Toro Cloud Dev Center


The MongoDb class contains functions for performing MongoDB operations such as:

  • the creation and deletion of databases and collections;
  • CRUD operations on documents; and
  • transaction management.

For use in Gloop only

This class is not part of the default Groovy extension module that is shipped with Martini out-of-the-box. Thus, these functions cannot be called in your Groovy code.

Here are example usages:

Sample Gloop service showing how to use the `MongoDb` functions