From ea23bff0d5c1f55413c3cea1b381351e5ef4fcc8 Mon Sep 17 00:00:00 2001 From: Frank Lemanschik <117739566+lemanschik@users.noreply.github.com> Date: Thu, 4 Jul 2024 09:04:01 +0200 Subject: [PATCH] Update README.md (doc): Fix no collection info while collections are needed. --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 66bef0ce..8eb054f4 100644 --- a/README.md +++ b/README.md @@ -38,7 +38,10 @@ const { connect, model, start, close } = require('ottoman'); const main = async () => { await connect("couchbase://localhost/travel-sample@admin:password"); - const User = model('User', { name: String }); + const User = model('User', { name: String }, { + collectionName: "_default", + scopeName: "_default", + }); const user = new User({ name: 'Jane Doe' });