Details
-
Bug
-
Resolution: Fixed
-
Major
-
3.0.8, 3.0.9, 3.0.10
-
None
-
None
-
1
Description
couchbase/subdocument.py > array_insert() needs to have the xattr keyword argument moved after the *values argument:
def array_insert(path, # type: str
|
xattr=False, # type: bool
|
*values # type: JSON
|
):
|
# type: (...) -> Spec
|
Currently, in order for this method to work the xattr keyword argument must be passed in before the values.
collection.upsert("array", []) |
collection.mutate_in("array", [SD.array_append("", "hello", "world")]) |
collection.mutate_in("array", [SD.array_insert("[1]", False, "cruel")]) |