Odysseus allows to read and write from a MongoDB store. As MongoDB stores its content in JSON format, only JSON can be read from MongoDB. Tuples send to MongoDB will automatically be transformed.

To use MongoDB please install the MongoDB-Feature.

Writing

Writing can be done with the Operator MongoDBSink.

Parameter

Example

out = MONGODBSINK({HOST = 'localhost', PORT = 27017, Database = 'test', COLLECTIONNAME = 'person2'}, person)

Reading

Reading can be done with the Operator MongoDBSource. Remark: The source will always read key value objects. If you want to have tuples you need to apply the KeyValueToTuple operator.

Parameter

Example

in = MONGODBSOURCE({COLLECTIONNAME = 'person', HOST = 'localhost', PORT = 27017, Database = 'test'})