.. _`Insert`: .. _`com.sympathyfordata.database.mongodb.insertone`: Insert `````` .. image:: insert_mongodb.svg :width: 48 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 :ref:`mongodb_data_format`. Definition :::::::::: Input ports ........... **mongodb** mongodb MongoDB **document** json Document Output ports ............ **mongodb** 0 - 1, mongodb MongoDB **inserted** 0 - 1, json Insert result **write_operation** 0 - 1, json 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 list Examples ........ * :download:`MongoDBBasicOperations.syx ` Implementation .............. .. automodule:: node_mongodb :noindex: .. class:: MongoDBInsertOne :noindex: