insert

Inserts each document of the previous stages at the path in its __name__ field; fails if the document exists.


fun insert(collectionPath: String): Pipeline(source)

Inserts each document of the previous stages into the collection at collectionPath, with its own id or a new one.


Inserts each document of the previous stages into collection, with its own id or a new one.


fun insert(documentIdExpression: Expression): Pipeline(source)

Inserts each document of the previous stages into its own collection, with the id documentIdExpression evaluates to.


fun insert(collectionPath: String, documentIdExpression: Expression): Pipeline(source)

Inserts each document of the previous stages into the collection at collectionPath, with the id documentIdExpression evaluates to.


fun insert(collection: CollectionReference, documentIdExpression: Expression): Pipeline(source)

Inserts each document of the previous stages into collection, with the id documentIdExpression evaluates to.