Insert¶
Insert a single document into the database
Documentation¶
Insert a single document into the database.
For info on how to input data to MongoDB, see MongoDB data format.
Definition¶
Input ports¶
- mongodb
Type: mongodbDescription: MongoDB- document
Type: jsonDescription: Document
Output ports¶
- mongodb
Type: mongodbDescription: MongoDBOptional number of ports: 0–1 (default: 1)- inserted
Type: jsonDescription: Insert resultOptional number of ports: 0–1 (default: 1)- write_operation
Type: jsonDescription: Write operation. Output write operation instead of performing the operation directly. The write operation can be used as an element in a bulk write input listOptional number of ports: 0–1 (default: 0)
Examples¶
Example flows demonstrating this node:
Implementation¶
- class node_mongodb.MongoDBInsertOne[source]