Remove
Remove(ref, ts, action)
Remove(ref, ts, action)
Remove(ref, ts, action)
Remove(ref, ts, action)
remove(ref, ts, action)
Remove(ref, ts, action)
Description
The Remove
function deletes an event from a document’s history.
The ref
parameter must be a reference to a document within a
user-defined collection.
Parameters
Parameter | Type | Definition and Requirements | ||
---|---|---|---|---|
|
A Reference to the document that should have an event removed. |
|||
|
The timestamp for the specific entry in the document’s history that should be removed. Can be expressed as either a number of UNIX microseconds since the Unix epoch, or as a Timestamp.
|
|||
|
The type of action ( |
Returns
An object containing the metadata of the remove
operations.
Field Name | Field Type | Definition and Requirements |
---|---|---|
|
A reference that identifies the document that was updated. |
|
|
A copy of the new document data. |
|
|
The timestamp, with microsecond resolution, of the event removal. |
Examples
The following query changes the history for a document in the "spells" collection. The create event at timestamp 1 is removed.
NullV
{}
null
null
None
null
Is this article helpful?
Tell Fauna how the article can be improved:
Visit Fauna's forums
or email docs@fauna.com
Thank you for your feedback!