Typo Error in Sub-Document Page
Dhruv-Aga opened this issue · 1 comments
Dhruv-Aga commented
I was going through the documentation and try the examples given. I found an error in the Sub-Document Page of Documentation.
The issue was in part:
var result = await collecton.LookupIn('customer123', [
couchbase.LookupInSpec.exists('purchases.pending[-1]')
]);
console.log('Path exists? ', result.content[0]);
which should be like below
var result = await collection.lookupIn('customer123', [
couchbase.LookupInSpec.exists('purchases.pending[-1]')
]);
console.log('Path exists? ', result.content[0]);
That means:
collecton.LookupIn -> collection.lookupIn
RichardSmedley commented
Thanks @Dhruv-Aga - fixed now