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
Copy file name to clipboardExpand all lines: docs/api/typedef.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -32,6 +32,7 @@ the POST document interface query parameters
32
32
33
33
| Name | Type | Description |
34
34
| --- | --- | --- |
35
+
|[raw_json]| <code>boolean</code> | default is false, If true, the input documents are treated as raw JSON, inserted as type sys:JSONDocument and are not subject to schema restrictions. |
35
36
|[graph_type]| <code>GraphType</code> | default is instance instance|schema Used to switch between getting documents from the instance or the schema graph. |
36
37
|[full_replace]| <code>boolean</code> | default is false, If true, all existing documents are deleted before inserting the posted documents. This allows the full replacement of the contents of a database. This is especially useful for replacing the schema. |
37
38
@@ -44,6 +45,7 @@ the PUT document interface query parameters
44
45
45
46
| Name | Type | Description |
46
47
| --- | --- | --- |
48
+
|[raw_json]| <code>boolean</code> | default is false, If true, the input documents are treated as raw JSON, inserted as type sys:JSONDocument and are not subject to schema restrictions. |
47
49
|[graph_type]| <code>GraphType</code> | default is instance, instance|schema Used to switch between getting documents from the instance or the schema graph. |
Get the patch of difference between two documents.
1128
1128
1129
1129
**Returns**: <code>Promise</code> - A promise that returns the call response object, or an Error if rejected.
@@ -1132,58 +1132,103 @@ Get the patch of difference between two documents.
1132
1132
| --- | --- | --- |
1133
1133
| before | <code>object</code> | The current state of JSON document |
1134
1134
| after | <code>object</code> | The updated state of JSON document |
1135
-
| options | <code>object</code> | [{}] - Options to send to the diff endpoint |
1135
+
| [options] | <code>object</code> | {keep:{}} Options to send to the diff endpoint the diff api outputs the changes between the input (JSON Object), but you can list the properties that you would like to see in the diff result in any case. |
Get the patch of difference between two documents.
1148
1153
1149
1154
**Returns**: <code>Promise</code> - A promise that returns the call response object, or an Error if rejected.
1150
1155
1151
1156
| Param | Type | Description |
1152
1157
| --- | --- | --- |
1158
+
| dataVersion | <code>string</code> | The version from which to compare the object |
1159
+
| jsonObject | <code>object</code> | The updated state of JSON document |
1153
1160
| id | <code>string</code> | The object id to be diffed |
1154
-
| beforeVersion | <code>string</code> | The version from which to compare the object |
1155
-
| after | <code>object</code> | The updated state of JSON document |
1156
-
| options | <code>object</code> | [{}] - Options to send to the diff endpoint |
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. |
Get the patch of difference between branches or commits.
1170
1175
1171
1176
**Returns**: <code>Promise</code> - A promise that returns the call response object, or an Error if rejected.
1172
1177
1173
1178
| Param | Type | Description |
1174
1179
| --- | --- | --- |
1175
-
| id | <code>string</code> | The object id to be diffed |
1176
-
| beforeVersion | <code>string</code> | The version from which to compare the object |
1177
-
| afterVersion | <code>string</code> | The version to which to compare the object |
1178
-
| options | <code>object</code> | [{}] - Options to send to the diff endpoint |
1180
+
| beforeVersion | <code>string</code> | Before branch/commit to compare |
1181
+
| afterVersion | <code>string</code> | Before branch/commit to compare |
1182
+
| [id] | <code>string</code> | The object id to be diffed, if it is omitted all the documents will be compared |
1183
+
| [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. |
1179
1184
1180
1185
**Example**
1181
1186
```javascript
1182
-
constdiff=awaitclient.getVersionDiff(
1183
-
"Person/Jane",
1184
-
"branch:a73ssscfx0kke7z76083cgswszdxy6l",
1185
-
"branch:73rqpooz65kbsheuno5dsayh71x7wf4"
1186
-
);
1187
+
//This is to view all the changes between two commits
0 commit comments