Skip to content
ejboy edited this page Apr 16, 2013 · 11 revisions

Usage example.

ETL which inserts a single record and then queries the collection and sends results to the text output:

<script connection-id="mongo">
    {
        operation: 'db.collection.save',
        collection: 'test',
        data: {value: '?{etl.date.now()}'}
    }
</script>

<query connection-id="mongo">
    {
        operation: 'db.collection.find',
        collection: 'test' 
    }
    <script connection-id="log">
        Row id=$_id value = $value
    </script>
</query>

Supported operations:

  • db.runCommand
  • db.collection.find
  • db.collection.save
  • db.collection.update

Known Issues and Limitations

Clone this wiki locally