Create data
Intro
This node is used to add a new document to a collection in your Koxy Database.
We recommend you read about Koxy Database.
How this node works
This node will simply add a new document to the collection you define.
This node will save the inserted document data as a response tht can be accessed from other nodes using the koxy.res.{NODE_NAME}
syntax. the document will be saved as a response like this:
{
"inserted_document": {
"document_id": "ID", // the id of the inserted document
"document_data": {
// the data of the inserted document
}
}
}
Node properties
name: node names should be unique and can't be changed.
Collection: the collection ID to add the document to.
document_od: the id of document to add. if left empty the system will generate a unique ID for the document.
Document data: the data of the document to add. should be a valid
JSON
. if left empty will insert an empty object{}
.Next: the trigger that the node should call after creating the document. click on the
next input
to get a list of available triggers.
Dynamic variables support
You can use dynamic variables in the following properties:
document_id.
Document data.