Skip to content

Commit b5d9a0e

Browse files
committed
update readme
1 parent fa6d07d commit b5d9a0e

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

Readme.md

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ client.createDatabase("http://localhost:6363/myFirstTerminusDB",details,'mykey')
146146

147147
```
148148

149-
##### `deleteDatabase(dbUrl:String):Promise`
149+
##### `deleteDatabase(dbUrl:String,key:String):Promise`
150150
For delete a terminusDB
151151

152152
```js
@@ -313,6 +313,7 @@ client.createDocument("http://localhost:6363/myFirstTerminusDB/document/chess/",
313313
console.log(err)
314314
});
315315

316+
316317
...
317318

318319
```
@@ -330,12 +331,24 @@ docurl TerminusDB document full URL or a valid TerminusDB document Id or omitted
330331
const opts={terminus:encoding: "terminus:frame",
331332
terminus:user_key: "mykey"}
332333

333-
client.getDocument("http://localhost:6363/myFirstTerminusDB/document/Rose",opts).then((response)=>{
334+
client.getDocument("http://localhost:6363/myFirstTerminusDB/document/chess",opts).then((response)=>{
335+
console.log(response)
336+
}).catch((err)=>{
337+
console.log(err)
338+
});
339+
340+
or
341+
342+
//get the document chess from current server and current terminusDB
343+
const opts={terminus:encoding: "terminus:frame"}
344+
345+
client.getDocument("doc:chess",opts).then((response)=>{
334346
console.log(response)
335347
}).catch((err)=>{
336348
console.log(err)
337349
});
338350

351+
339352
...
340353

341354
```

0 commit comments

Comments
 (0)