You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> This repository is for the JavaScript client for TerminusDB and TerminusX. The
15
-
> JavaScript client runs in the browser and on Node.js.
14
+
> This repository is for the JavaScript client library for TerminusDB and
15
+
> TerminusX.
16
16
17
17
[**TerminusDB**][terminusdb] is an [open-source][terminusdb-repo] graph database
18
18
and document store. It allows you to link JSON documents in a powerful knowledge
@@ -30,40 +30,41 @@ TerminusX is in public beta and you can [sign up now][dashboard].
30
30
31
31
## Requirements
32
32
33
-
-[NodeJS 10+](https://nodejs.org/en/)
33
+
-Node.js version 10+ if using the TerminusDB client library as a Node.js package
34
34
35
35
## Installation
36
36
37
-
TerminusDB Client can be used as either a Node.js module available through the npm registry, or directly included in web-sites by including the script tag below.
37
+
The TerminusDB JavaScript client library can be used either as a Node.js package
38
+
or as a script that runs in the browser.
38
39
39
-
### NPM Module
40
+
### NPM Package
40
41
41
-
Before installing, download and install Node.js.<br>
42
-
NodeJS version 10.X or higher is required. NodeJS version 14.X is recommended.
42
+
> :memo: If you don't already have Node.js installed, [install it][node-install] first.
43
43
44
-
Installation is done using the npm install command:
> This repository is for the JavaScript client for TerminusDB and TerminusX. The
15
-
> JavaScript client runs in the browser and on Node.js.
14
+
> This repository is for the JavaScript client library for TerminusDB and
15
+
> TerminusX.
16
16
17
17
[**TerminusDB**][terminusdb] is an [open-source][terminusdb-repo] graph database
18
18
and document store. It allows you to link JSON documents in a powerful knowledge
@@ -30,40 +30,41 @@ TerminusX is in public beta and you can [sign up now][dashboard].
30
30
31
31
## Requirements
32
32
33
-
-[NodeJS 10+](https://nodejs.org/en/)
33
+
-Node.js version 10+ if using the TerminusDB client library as a Node.js package
34
34
35
35
## Installation
36
36
37
-
TerminusDB Client can be used as either a Node.js module available through the npm registry, or directly included in web-sites by including the script tag below.
37
+
The TerminusDB JavaScript client library can be used either as a Node.js package
38
+
or as a script that runs in the browser.
38
39
39
-
### NPM Module
40
+
### NPM Package
40
41
41
-
Before installing, download and install Node.js.<br>
42
-
NodeJS version 10.X or higher is required. NodeJS version 14.X is recommended.
42
+
> :memo: If you don't already have Node.js installed, [install it][node-install] first.
43
43
44
-
Installation is done using the npm install command:
Executes a WOQL query on the specified database and returns the results
143
143
144
144
**Returns**: <code>Promise</code> - A promise that returns the call response object, or an Error if rejected.
@@ -148,6 +148,8 @@ Executes a WOQL query on the specified database and returns the results
148
148
| woql | <code>WOQLQuery</code> | an instance of the WOQLQuery class |
149
149
|[commitMsg]| <code>string</code> | a message describing the reason for the change that will be written into the commit log (only relevant if the query contains an update) |
150
150
|[allWitnesses]| <code>boolean</code> ||
151
+
|[lastDataVersion]| <code>string</code> | If passed it will be used for data version tracking |
152
+
|[getDataVersion]| <code>string</code> | If true it the function will return object having result and dataVersion |
151
153
152
154
**Example**
153
155
```js
@@ -625,6 +627,7 @@ Common request dispatch function
625
627
| action | <code>string</code> | the action name |
626
628
| apiUrl | <code>string</code> | the server call endpoint |
627
629
| [payload] | <code>object</code> | the post body |
630
+
| [getDataVersion] | <code>boolean</code> | If true return response with data version |
0 commit comments