From 02a9fe8fb31c2998b5a3da77d4e3a57ffd01e9ff Mon Sep 17 00:00:00 2001 From: Danielle9897 Date: Sun, 10 May 2026 20:38:23 +0300 Subject: [PATCH] RDoc-2513 JavaScript Engine: add time series functions (v6.2) --- .../server/kb/javascript-engine.mdx | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/versioned_docs/version-6.2/server/kb/javascript-engine.mdx b/versioned_docs/version-6.2/server/kb/javascript-engine.mdx index da90bdc79e..317ac7f690 100644 --- a/versioned_docs/version-6.2/server/kb/javascript-engine.mdx +++ b/versioned_docs/version-6.2/server/kb/javascript-engine.mdx @@ -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 |