Skip to content

Commit

Permalink
Update readme for using new/flexible interfaces
Browse files Browse the repository at this point in the history
  • Loading branch information
shjagannath committed Oct 24, 2024
1 parent a6fa4c2 commit c67d7f4
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,22 @@ function makeId(length) {

```

### Exists test

```js
import xk6_couchbase from 'k6/x/couchbase';


const client = xk6_couchbase.newClient('localhost', '<username>', '<password>');
export default () => {
// syntax :: client.exists("<db>", "<scope>", "<keyspace>", "<docId>");
var res = client.exists("test", "_default", "_default", "002wPJwiJArcUpz");
console.log(res);
}

```


### FindOne test

```js
Expand Down

0 comments on commit c67d7f4

Please sign in to comment.