Skip to content

Commit 172daf5

Browse files
change readme
1 parent 156ec51 commit 172daf5

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

README.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,14 @@ For the [full Documentation](https://terminusdb.com/docs/client_api)
5050
const TerminusClient = require('@terminusdb/terminusdb-client');
5151

5252
//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+
});
5458

5559
//Connect to a TerminusDB server at the given URI with an API key
56-
client.connect("http://localhost:6363/", 'myKey').
60+
client.connect().
5761
.then(function (response) {
5862
// handle success
5963
console.log(response);
@@ -70,7 +74,7 @@ client.connect("http://localhost:6363/", 'myKey').
7074
//use async/await.
7175
async function getCapabilities() {
7276
try {
73-
const response = await client.connect("http://localhost:6363/", 'myKey');
77+
const response = await client.connect();
7478
console.log(response);
7579
} catch (err) {
7680
console.error(err);

0 commit comments

Comments
 (0)