await collection.mutateIn('documentId', [
couchbase.MutateInSpec.upsert(
'path.to.sub.property',
"test",
{
createPath: true,
}
),
])
If path.to.sub
does not exists I get a “path not found” error, even if the createPath options is provided.
I already opened an issue about it: https://issues.couchbase.com/browse/JSCBC-1049
Thanks @losapevo , we will look into this, just to confirm document with key documentId
do exists correct ?
Hi @AV25242
Of course. That was just an example, but I can confirm that “documentId” exists, while path.to.sub
does not exist. No metter how long the path is, if the father property does not exists, the mutate fails
Hi @losapevo
We identified this issue internally (Loading...). The fix will be available in 4.0.1.
3 Likes
Sorry guys, when v4.0.1 is planned to be released?
@losapevo that would be May 3rd.