Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
(doc): Fix no collection info while collections are needed.
  • Loading branch information
lemanschik authored Jul 4, 2024
1 parent 3bd30d7 commit ea23bff
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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' });

Expand Down

0 comments on commit ea23bff

Please sign in to comment.