Skip to main content

Update data


Intro

This node is used to update a document in a collection in your Koxy Database.

We recommend you read about Koxy Database.


How this node works

Currently, this node will replace a document data with the new data you give it.

This node will save the updated 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:

{
"updated_document": {
"document_id": "ID", // the id of the updated document
"document_data": {
// the data of the updated document
}
}
}

Node properties

  • name: node names should be unique and can't be changed.

  • Collection: the collection ID to update the document in.

  • document_od: the id of document to update.

  • Document data: the updated document data to replace the document data with. should be a valid JSON. if left empty will insert an empty object {}.

  • Next: the trigger that the node should call after updating 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.