Skip to content

Commit 34f0976

Browse files
Merge pull request #219 from terminusdb/docs-update
Docs update
2 parents d5fca2f + 4d7b460 commit 34f0976

File tree

6 files changed

+15
-13
lines changed

6 files changed

+15
-13
lines changed

docs/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ const bankerSchema = [
100100
"@type":"Class",
101101
"@id":"Person",
102102
"@key":{
103-
"@type":"Hash",
103+
"@type":"Lexical",
104104
"@fields":[
105105
"name"
106106
]

docs/_sidebar.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,10 @@
6060
- [getPrefixes](api/woqlClient.js?id=getPrefixes)
6161
- [getUserOrganizations](api/woqlClient.js?id=getUserOrganizations)
6262
- [userOrganizations](api/woqlClient.js?id=userOrganizations)
63-
- [getDiff](api/woqlClient.js?id=getDiff)
63+
- [getJSONDiff](api/woqlClient.js?id=getJSONDiff)
6464
- [getVersionObjectDiff](api/woqlClient.js?id=getVersionObjectDiff)
6565
- [getVersionDiff](api/woqlClient.js?id=getVersionDiff)
66+
- [apply](api/woqlClient.js?id=apply)
6667
- [patch](api/woqlClient.js?id=patch)
6768
- [WOQL](api/woql.js?id=WOQL)
6869
- [using](api/woql.js?id=using)
@@ -169,6 +170,7 @@
169170
- [setApiToken](api/accessControl.js?id=setApiToken)
170171
- [setApiKey](api/accessControl.js?id=setApiKey)
171172
- [getAPIUrl](api/accessControl.js?id=getAPIUrl)
173+
- [customHeaders](api/accessControl.js?id=customHeaders)
172174
- [getAllOrganizations](api/accessControl.js?id=getAllOrganizations)
173175
- [createOrganization](api/accessControl.js?id=createOrganization)
174176
- [deleteOrganization](api/accessControl.js?id=deleteOrganization)

docs/api/woqlclient.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1132,7 +1132,7 @@ Get the patch of difference between two documents.
11321132
| --- | --- | --- |
11331133
| before | <code>object</code> | The current state of JSON document |
11341134
| after | <code>object</code> | The updated state of JSON document |
1135-
| [options] | <code>object</code> | {keep:{}} Options to send to the diff endpoint. The diff api outputs the changes between the input (branches or commits), in options you can list the properties that you would like to see in the diff result in any case. |
1135+
| [options] | <code>object</code> | {keep:{}} Options to send to the diff endpoint. The diff api outputs the changes between the input, in options you can list the properties that you would like to see in the diff result in any case. |
11361136
11371137
**Example**
11381138
```javascript
@@ -1157,8 +1157,8 @@ Get the patch of difference between two documents.
11571157
| --- | --- | --- |
11581158
| dataVersion | <code>string</code> | The version from which to compare the object |
11591159
| jsonObject | <code>object</code> | The updated state of JSON document |
1160-
| id | <code>string</code> | The object id to be diffed |
1161-
| [options] | <code>object</code> | {keep:{}} Options to send to the diff endpoint the diff api outputs the changes between the input (branches or commits), but you can list the properties that you would like to see in the diff result in any case. |
1160+
| id | <code>string</code> | The document id to be diffed |
1161+
| [options] | <code>object</code> | {keep:{}} Options to send to the diff endpoint the diff api outputs the changes between the input, but you can list the properties that you would like to see in the diff result in any case. |
11621162
11631163
**Example**
11641164
```javascript
@@ -1244,7 +1244,7 @@ Patch the difference between two documents.
12441244
12451245
**Example**
12461246
```javascript
1247-
let diffPatch = await client.getDiff(
1247+
let diffPatch = await client.getJSONDiff(
12481248
{ "@id": "Person/Jane", "@type": "Person", name: "Jane" },
12491249
{ "@id": "Person/Jane", "@type": "Person", name: "Janine" }
12501250
);

lib/woqlClient.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1469,7 +1469,7 @@ WOQLClient.prototype.userOrganizations = function (orgList) {
14691469
* @param {object} before - The current state of JSON document
14701470
* @param {object} after - The updated state of JSON document
14711471
* @param {object} [options] - {keep:{}} Options to send to the diff endpoint.
1472-
* The diff api outputs the changes between the input (branches or commits),
1472+
* The diff api outputs the changes between the input,
14731473
* in options you can list the properties that you would like to see in the diff result in any case.
14741474
* @returns {Promise} A promise that returns the call response object, or an Error if rejected.
14751475
* @example
@@ -1505,9 +1505,9 @@ WOQLClient.prototype.getJSONDiff = function (before, after, options) {
15051505
* Get the patch of difference between two documents.
15061506
* @param {string} dataVersion - The version from which to compare the object
15071507
* @param {object} jsonObject - The updated state of JSON document
1508-
* @param {string} id - The object id to be diffed
1508+
* @param {string} id - The document id to be diffed
15091509
* @param {object} [options] - {keep:{}} Options to send to the diff endpoint
1510-
* the diff api outputs the changes between the input (branches or commits),
1510+
* the diff api outputs the changes between the input,
15111511
* but you can list the properties that you would like to see in the diff result in any case.
15121512
* @returns {Promise} A promise that returns the call response object, or an Error if rejected.
15131513
* @example
@@ -1640,7 +1640,7 @@ WOQLClient.prototype.apply = function (beforeVersion, afterVersion, message, mat
16401640
* @param {object} patch - The patch object
16411641
* @returns {Promise} A promise that returns the call response object, or an Error if rejected.
16421642
* @example
1643-
* let diffPatch = await client.getDiff(
1643+
* let diffPatch = await client.getJSONDiff(
16441644
* { "@id": "Person/Jane", "@type": "Person", name: "Jane" },
16451645
* { "@id": "Person/Jane", "@type": "Person", name: "Janine" }
16461646
* );

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@terminusdb/terminusdb-client",
3-
"version": "10.0.17",
3+
"version": "10.0.18",
44
"description": "TerminusDB client library",
55
"main": "index.js",
66
"types": "./dist/typescript/index.d.ts",

0 commit comments

Comments
 (0)