From c67d7f4487b22f744e04bf1b74adaa9a4fdb5c06 Mon Sep 17 00:00:00 2001 From: Sharath Jagannath Date: Wed, 23 Oct 2024 21:49:53 -0700 Subject: [PATCH] Update readme for using new/flexible interfaces --- README.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/README.md b/README.md index d332d75..09b8388 100644 --- a/README.md +++ b/README.md @@ -119,6 +119,22 @@ function makeId(length) { ``` +### Exists test + +```js +import xk6_couchbase from 'k6/x/couchbase'; + + +const client = xk6_couchbase.newClient('localhost', '', ''); +export default () => { + // syntax :: client.exists("", "", "", ""); + var res = client.exists("test", "_default", "_default", "002wPJwiJArcUpz"); + console.log(res); +} + +``` + + ### FindOne test ```js