-
Notifications
You must be signed in to change notification settings - Fork 4
Reference
ejboy edited this page Apr 16, 2013
·
11 revisions
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>
- db.runCommand
- db.collection.find
- db.collection.save
- db.collection.update