@@ -32,6 +32,11 @@ const client = new TerminusClient.WOQLClient('SERVER_CLOUD_URL/mycloudTeam',
3232 {user
: " [email protected] " , organization
: ' mycloudTeam' })
3333
3434client .setApiKey (MY_ACCESS_TOKEN )
35+ // to get the list of all organization's databases
36+ client .getDatabases (result => {
37+ console .log (result)
38+
39+ })
3540async function getSchema () {
3641 client .db (" test" )
3742 client .checkout (" dev" )
@@ -303,7 +308,8 @@ let api_url = client.api()
303308
304309### organization
305310#### woqlClient.organization([orgId]) ⇒ <code>string</code> \| <code>boolean</code>
306- Gets/Sets the client’s internal organization context value
311+ Gets/Sets the client’s internal organization context value, if you change the organization name the
312+ databases list will be set to empty
307313
308314
309315| Param | Type | Description |
@@ -315,6 +321,15 @@ Gets/Sets the client’s internal organization context value
315321client .organization (" admin" )
316322` ` `
317323
324+ ### getDatabases
325+ #### woqlClient.getDatabases() ⇒ <code>string</code> \| <code>boolean</code>
326+ Gets the organization's databases list
327+
328+ **Example**
329+ ` ` ` js
330+ client .getDatabases ()
331+ ` ` `
332+
318333### user
319334#### woqlClient.user() ⇒ <code>Object</code>
320335Gets the current user object as returned by the connect capabilities response
@@ -851,6 +866,18 @@ get the database collections list
851866client .getBranches ()
852867` ` `
853868
869+ ### getUserOrganizations
870+ #### woqlClient.getUserOrganizations() ⇒ <code>Promise</code>
871+ get the organizations and the database related
872+
873+ **Returns**: <code>Promise</code> - A promise that returns the call response object, or an Error if rejected.
874+ **Example**
875+ ` ` ` js
876+ client .getUserOrganizations ().then (result => {
877+ console .log (result)
878+ })
879+ ` ` `
880+
854881### getDiff
855882#### woqlClient.getDiff(before, after) ⇒ <code>Promise</code>
856883Get the patch of difference between two documents.
0 commit comments