Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions versioned_docs/version-6.2/server/kb/javascript-engine.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,24 @@ RavenDB provides the following set of predefined functions:
| **counterRaw(documentId, counterName)** | `object` | Returns a dictionary containing the counter value for each database node. The overall counter value is the sum of all node values. |
| **counterRaw(document, counterName)** | `object` | Returns a dictionary containing the counter value for each database node. The overall counter value is the sum of all node values. |

#### **Time series operations**:

* Learn more in:
* [Time series: JavaScript support](../../document-extensions/timeseries/client-api/javascript-support.mdx)
* [Incremental Time Series: JavaScript Support ](../../document-extensions/timeseries/incremental-time-series/client-api/javascript-support.mdx)

| Method Signature | Return type | Description |
|------------------------------------------------|--------------|----------------------------------------------------------------------------------------------------------------------------------|
| **timeseries (doc, name)** | `object` | Returns a handle to the specified time series associated with the document, enabling operations such as append, delete, and get. |
| **timeseries.append (timestamp, values)** | `void` | Appends a new entry to the time series at the specified timestamp with the provided values. |
| **timeseries.append (timestamp, values, tag)** | `void` | Appends a new entry to the time series at the specified timestamp with the provided values and an optional tag. |
| **timeseries.delete (from, to)** | `void` | Deletes a range of entries from a time series. |
| **timeseries.get (from, to)** | `object[]` | Retrieves a range of time series entries. |
| **timeseries.increment(timestamp, values)** | `void` | Increments the values of an incremental time series entry at the specified timestamp. |
| **timeseries.increment(values)** | `void` | Increments the values of an incremental time series entry at the current time. |
| **timeseries.increment(timestamp, value)** | `void` | Increments a single value of an incremental time series entry at the specified timestamp. |
| **timeseries.increment(value)** | `void` | Increments a single value of an incremental time series entry at the current time. |

#### **Compare-exchange**:

| Method Signature | Return type | Description |
Expand Down
Loading