Java NodeJS Python .NET PHP Ruby Scala Go C++ Tools
  • Java API docs
  • Key Value Get
  • Query Rows
  • Query w/ Named Param
  • Query w/ Positional Param
  • Sub-document Lookup
  • Sub-document Mutate
  • Transactions KV Mutate
  • Transactions N1QL
  • Upsert
  • NodeJS API docs
  • Key Value Get
  • Query Rows
  • Query w/ Named Param
  • Query w/ Positional Param
  • Sub-document Lookup
  • Sub-document Mutate
  • Upsert
  • Python API docs
  • Key Value Get
  • Query Rows
  • Query w/ Named Param
  • Query w/ Positional Param
  • Sub-document Lookup
  • Sub-document Mutate
  • Upsert
  • .NET API docs
  • Key Value Get
  • Query Rows
  • Query w/ Named Param
  • Query w/ Positional Param
  • Sub-document Lookup
  • Sub-document Mutate
  • Upsert
  • PHP API docs
  • Key Value Get
  • Query Rows
  • Query w/ Named Param
  • Query w/ Positional Param
  • Sub-document Lookup
  • Sub-document Mutate
  • Upsert
  • Ruby API docs
  • Key Value Get
  • Query Rows
  • Query w/ Named Param
  • Query w/ Positional Param
  • Sub-document Lookup
  • Sub-document Mutate
  • Upsert
  • Scala API docs
  • Key Value Get
  • Query Rows
  • Query w/ Named Param
  • Query w/ Positional Param
  • Sub-document Lookup
  • Sub-document Mutate
  • Upsert
  • Go API docs
  • Key Value Get
  • Query Rows
  • Query w/ Named Param
  • Query w/ Positional Param
  • Sub-document Lookup
  • Sub-document Mutate
  • Upsert
  • C++ API docs
  • Key Value Get
  • Query Rows
  • Query w/ Named Param
  • Query w/ Positional Param
  • Sub-document Lookup
  • Sub-document Mutate
  • Upsert
  • Tools
  • N1QL Query Using curl
  • Generate Test Data
  • More Online Tools

Python - Sub-document Mutate

The Sub-document API allows for retrieving or mutating a portion of a larger document, without having to first retrieve the entire document, which can provide for higher performance.

Visit the docs to learn more about Sub-document Operations in Python.
Also try Couchbase Server in an online playground: Start Playground Session