Skip to content

Home

Development

IDEs

API Explorer

Releases

Release notes

Martini Runtime

Martini Desktop

Martini Online

Feature requests

Bug reports

MongoDbMethods

The MongoDbMethods class contains one-liners 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 one-liners cannot be called in your Groovy code.

Here are example usages:

Sample Gloop service showing how to use the `MongoDbMethods` one-liners