MAGMA-240 Implemented for MongoDB datasource