Skip to content

Commit 2386397

Browse files
committed
add getPrefix
1 parent 6408b43 commit 2386397

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

lib/woqlClient.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1183,11 +1183,16 @@ WOQLClient.prototype.getBranches = function (dbId) {
11831183
};
11841184

11851185
/**
1186-
* get the database collections list
1186+
* get the database prefixes object
11871187
* @param {string} [dbId] - the database id
11881188
* @returns {Promise} A promise that returns the call response object, or an Error if rejected.
11891189
* @example
1190-
* client.getBranches()
1190+
* client.getPrefixes()
1191+
* //return object example
1192+
* {
1193+
* '@base': 'terminusdb:///data/',
1194+
* '@schema': 'terminusdb:///schema#',
1195+
* '@type': 'Context'}
11911196
*/
11921197
WOQLClient.prototype.getPrefixes = function (dbId) {
11931198
if (dbId) this.db(dbId);

0 commit comments

Comments
 (0)