File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -50,10 +50,14 @@ For the [full Documentation](https://terminusdb.com/docs/client_api)
50
50
const TerminusClient = require('@terminusdb/terminusdb-client');
51
51
52
52
//Create a new instance of terminusDB client
53
- const client = new TerminusClient.WOQLClient();
53
+ const client = new TerminusClient.WOQLClient(http://localhost:6363/,{
54
+ dbid:"test_db",
55
+ user:"admin",
56
+ key:"my_secret_key"
57
+ });
54
58
55
59
//Connect to a TerminusDB server at the given URI with an API key
56
- client.connect("http://localhost:6363/", 'myKey' ).
60
+ client.connect().
57
61
.then(function (response) {
58
62
// handle success
59
63
console.log(response);
@@ -70,7 +74,7 @@ client.connect("http://localhost:6363/", 'myKey').
70
74
//use async/await.
71
75
async function getCapabilities() {
72
76
try {
73
- const response = await client.connect("http://localhost:6363/", 'myKey' );
77
+ const response = await client.connect();
74
78
console.log(response);
75
79
} catch (err) {
76
80
console.error(err);
You can’t perform that action at this time.
0 commit comments