storage: update documentUpdate document in the given storage and creates a revision for it.
The documents GUID (unique ID) to update. Provide the mutations for this document. e.g. use set fields
to set existing/update fields. The storage this document is currently stored in. When a document is given an expiry date, the document will be unrecoverably deleted on the given date 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 update. timestamp in ms, can be used to wait for the document to be available in search. storage: update multiple documentsUpdates multiple documents in the given storage
An array of objects or GUIDs representing existing documents. The storage these documents should be updated in. When a document is given an expiry date, the document will be unrecoverably deleted on the given date Provide skip_revisions
to update these documents without creating revisions or skip_on_saved
to skip the on-events for this document update. storage: create documentCreates a document in the given storage.
Provide the mutations for this document. e.g. use set fields
to set existing/new fields. The storage this document will be created. When a document is given an expiry date, the document will be unrecoverably deleted on the given date. 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 create. timestamp in ms, can be used to wait for the document to be available in search. storage: remove documentRemoves the given document from the given storage.
The documents GUID (unique ID) to remove. The storage this document should be removed in. When a document is given an expiry date, the document will be unrecoverably deleted on the given date Returns true
in case the removal succeeded storage: move documentsMoves documents from one storage to another. Moved documents can still be found in the old storage (removed and with expiry) for 36 hours
The storage you would like to move these documents from The storage you would like to move these documents to The query will be applied to find the documents that are going to be moved to a different storage The number of files to be moved, the maximum is 50.000 storage: wait for documentUsing the given timestamp will wait for the document to be present in search.
The exact timestamp search should be up2date with. Difference max. is -5m and +5. Returns true if the document is available in search. storage: search streamingstreams the results of the search in the given database based on a query to a function.
Search will return cached results by default. Turn this behaviour off by adding Disable cache
to this query. storage: find existing documentsreturns array of existing and non-existing documents in a given storage from an array of objects.
Array(Object({code: ..}), Object({code: ..})) storage: trigger eventEvent is executed when the storage receives an event relevant update (removed, created, updated or saved).
The most recent document at the time of this event being executed. The storage this document has been triggered on. The revisions triggering this event. The fields modified triggering this event. storage: searchsearches in the given storage based on a query.
Search will return cached results by default. Turn this behaviour off by adding Disable cache
to this query. Array of objects, each object is a single document. All results always include _meta
. Number of documents found matching the given query. Analyzed profile of the query, this data is gathered only when the query includes the Profile
action. storage: search singlesearches in the given storage based on a query and returns maximum one result.
Search will return cached results by default. Turn this behaviour off by adding Disable cache
to this query. The result if one has been found. The guid of the result if one has been found. storage: get multiple documentsGet multiple documents from the given storage. Skips documents that do not exist or removed.
Array of guids (values), or Array of Objects with _meta storage: remove multiple documentsRemoves multiple documents from the given storage.
When a document is given an expiry date, the document will be unrecoverably deleted on the given date storage: restore documentRestores a single document from the removed state and adds a revisions for this modification.
The documents GUID (unique ID) to restore. storage: create multiple documentsCreates multiple documents in the given storage, each item in the array becomes a document.
Each item in this array becomes a document, make sure the item is an object. The storage these documents should be created in. When a document is given an expiry date, the document will be unrecoverably deleted on the given date storage: set document expiryUpdates the expiry of the given document from the given storage.
The documents GUID (unique ID) to update. The storage this document should be updated in. The document will be unrecoverably deleted on the given date Returns true
in case the update succeeded storage: permanently delete documentDeletes the given document from the given storage permanently and unrecoverably.
The documents GUID (unique ID) to delete. Indicate you very sure you want to execute this. Returns true
in case the delete succeeded