I'm trying to implement this bit of code:
bucket.mutate_in('some_doc',
SD.array_append('some.array', 'Hello', 'World',
create_parents=True))
Which I'm getting from here: https://developer.couchbase.com/documentation/server/current/sdk/subdocument-operations.html
I'm also using this: https://github.com/couchbase/couchnode
I can't import "subdocument" from couchbase, because I get an error saying it doesn't exist, and when I try to use the mutateIn method (or the mutate_in method) I also get an error saying that mutateIn is not a property of Bucket (which it should be).
I would like to append an item to an array (or create an array if it doesn't exists and then append an item to it) for one of my documents in my couchbase bucket.
You probably don't have a new enough version installed. Per the release notes, Sub Document support was GA'd in 2.3.0, while it was added in earlier releases as uncommitted.
What does your package.json or
npm listcommand say about the version you have?