upsert document
This block is part of the storage group and was last modified in core v14.0.5.
Storage Selection Required
This block relies on a storage to perform its storage releated actions. You must manually select the storage you want to use in your flow using the storage selector modal. To access the modal, click the white button on the block.
upsert document
v14.0.5
Creates or updates a document with the given GUID. If the document does not exist, it will be created. If it already exists, the mutations will be applied to the existing document.
| Pin | Pin | Type | Default |
|---|---|---|---|
| flow |
flow |
||
| guid The GUID for this document. If a document with this GUID exists it will be updated, otherwise a new document will be created. |
value |
||
| mutations Provide the mutations for this document. e.g. use set fields to set existing/new fields. |
mutations |
||
| expiry When a document is given an expiry date, the document will be unrecoverably deleted on the given date. |
date |
||
| options Options can be given e.g. skip_revisions to skip create revisions for high-update docs or skip_on_saved to skip the on-events for this document. |
object |
||
| Storage The storage this document will be created in or updated. |
storage |
| Pin | Pin | Type | Example |
|---|---|---|---|
| flow |
flow |
||
| success |
condition |
||
| guid |
value |
||
| object |
object |
||
| timestamp timestamp in ms, can be used to wait for the document to be available in search. |
number |
||
| error |
value |
||
| created Returns true if the document was created, false if an existing document was updated. |
condition |
Core Releases
v14.0.5 This block was introduced inv14.0.5, click here to see the release notes.
Back to
storage
Return to the main group to view all sub-groups
Back to storage
Return to the group to view all blocks within this group