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: README.md
+33-5Lines changed: 33 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -320,11 +320,39 @@ const client = new SlicingDice({
320
320
readKey:'READ_KEY'
321
321
}, usesTestEndpoint =true);
322
322
323
-
consttables= {
324
-
"tables": [
325
-
"default"
326
-
]
327
-
};
323
+
client.countEntityTotal().then((resp) => {
324
+
console.log(resp);
325
+
}, (err) => {
326
+
console.error(err);
327
+
});
328
+
```
329
+
330
+
#### Output example
331
+
332
+
```json
333
+
{
334
+
"status": "success",
335
+
"result": {
336
+
"total": 42
337
+
},
338
+
"took": 0.103
339
+
}
340
+
```
341
+
342
+
### `countEntityTotal(tables)`
343
+
Count the total number of inserted entities in the given tables. This method corresponds to a [POST request at /query/count/entity/total](http://panel.slicingdice.com/docs/#api-details-api-endpoints-get-query-count-entity-total).
0 commit comments