@@ -24,7 +24,6 @@ const WOQLQuery = require('./query/woqlCore');
24
24
* should never have to be accessed directly. For situations where you want to communicate
25
25
* with a TerminusDB server API, the WOQLClient class is all you will need.
26
26
*/
27
-
28
27
class WOQLClient {
29
28
connectionConfig = null ;
30
29
@@ -1053,7 +1052,6 @@ WOQLClient.prototype.prepareRevisionControlArgs = function (rc_args) {
1053
1052
* "add new schema", response.dataVersion,
1054
1053
* )
1055
1054
*/
1056
-
1057
1055
WOQLClient . prototype . addDocument = function ( json , params , dbId , message = 'add a new document' , lastDataVersion = '' , getDataVersion = false , compress = false ) {
1058
1056
if ( dbId ) {
1059
1057
this . db ( dbId ) ;
@@ -1130,7 +1128,6 @@ WOQLClient.prototype.addDocument = function (json, params, dbId, message = 'add
1130
1128
* response.dataVersion
1131
1129
* );
1132
1130
*/
1133
-
1134
1131
WOQLClient . prototype . queryDocument = function ( query , params , dbId , branch , lastDataVersion = '' , getDataVersion = false ) {
1135
1132
if ( dbId ) {
1136
1133
this . db ( dbId ) ;
@@ -1319,7 +1316,6 @@ WOQLClient.prototype.getDocument = function (params, dbId, branch, lastDataVersi
1319
1316
"children":[{"@type ": "Person","name": "child01"}]
1320
1317
},{create:true})
1321
1318
*/
1322
-
1323
1319
WOQLClient . prototype . updateDocument = function ( json , params , dbId , message = 'update document' , lastDataVersion = '' , getDataVersion = false , compress = false , create = false ) {
1324
1320
const docParams = params || { } ;
1325
1321
docParams . author = this . author ( ) ;
@@ -1382,7 +1378,6 @@ WOQLClient.prototype.updateDocument = function (json, params, dbId, message = 'u
1382
1378
* response.dataVersion,
1383
1379
* )
1384
1380
*/
1385
-
1386
1381
WOQLClient . prototype . deleteDocument = function ( params , dbId , message = 'delete document' , lastDataVersion = '' , getDataVersion = false ) {
1387
1382
const docParams = params || { } ;
1388
1383
let payload = null ;
@@ -1414,7 +1409,6 @@ WOQLClient.prototype.deleteDocument = function (params, dbId, message = 'delete
1414
1409
* @example
1415
1410
* client.getSchemaFrame("Country")
1416
1411
*/
1417
-
1418
1412
WOQLClient . prototype . getSchemaFrame = function ( type , dbId ) {
1419
1413
let params ;
1420
1414
if ( type ) params = { type } ;
@@ -1432,7 +1426,6 @@ WOQLClient.prototype.getSchemaFrame = function (type, dbId) {
1432
1426
* @example
1433
1427
* client.getSchema()
1434
1428
*/
1435
-
1436
1429
WOQLClient . prototype . getSchema = function ( dbId , branch ) {
1437
1430
const params = { graph_type : 'schema' , as_list : true } ;
1438
1431
return this . getDocument ( params , dbId , branch ) ;
@@ -1779,7 +1772,6 @@ WOQLClient.prototype.getVersionObjectDiff = function (dataVersion, jsonObject, i
1779
1772
* console.log(diffResult)
1780
1773
* })
1781
1774
*/
1782
-
1783
1775
WOQLClient . prototype . getVersionDiff = function ( beforeVersion , afterVersion , id , options ) {
1784
1776
if ( typeof beforeVersion !== 'string' || typeof afterVersion !== 'string' ) {
1785
1777
const errmsg = 'Error, you have to provide a beforeVersion and afterVersion input' ;
@@ -1819,7 +1811,6 @@ WOQLClient.prototype.getVersionDiff = function (beforeVersion, afterVersion, id,
1819
1811
* console.log(result)
1820
1812
* })
1821
1813
*/
1822
-
1823
1814
// eslint-disable-next-line max-len
1824
1815
WOQLClient . prototype . apply = function ( beforeVersion , afterVersion , message , matchFinalState , options ) {
1825
1816
const opt = options || { } ;
@@ -1855,7 +1846,6 @@ WOQLClient.prototype.apply = function (beforeVersion, afterVersion, message, mat
1855
1846
* console.log(result)
1856
1847
* })
1857
1848
*/
1858
-
1859
1849
// eslint-disable-next-line max-len
1860
1850
WOQLClient . prototype . docHistory = function ( id , historyParams ) {
1861
1851
const params = historyParams || { } ;
@@ -1877,7 +1867,6 @@ WOQLClient.prototype.docHistory = function (id, historyParams) {
1877
1867
* console.log(result)
1878
1868
* })
1879
1869
*/
1880
-
1881
1870
WOQLClient . prototype . sendCustomRequest = function ( requestType , customRequestURL , payload ) {
1882
1871
return this . dispatch (
1883
1872
requestType ,
0 commit comments