# Sub-Document 部分更新操作

[Sub-Document Operations](https://developer.couchbase.com/documentation/server/5.5/sdk/subdocument-operations.html#page-template-attributes)

从Couchbase Server 4.5开始，可以自动、高效地更新和检索局部文档。

参考资料:

[Does Couchbase partial JSON update?](https://forums.couchbase.com/t/does-couchbase-partial-json-update/5206)

[Sub document update for a nested array document](https://forums.couchbase.com/t/sub-document-update-for-a-nested-array-document/13232)

[devguide-examples/nodejs/subdoc.js](https://github.com/xiaoxiami/couchbase/tree/29f57ff68db830faf91c6df1f3ef90e5771a901f/h%20ttps:/github.com/couchbaselabs/devguide-examples/blob/master/nodejs/subdoc.js)

[How to Update Parts of a document in Couchbase](https://stackoverflow.com/questions/37246934/how-to-update-parts-of-a-document-in-couchbase)

[Couchbase N1QL: Update on nested Documents](https://stackoverflow.com/questions/29581646/couchbase-n1ql-update-on-nested-documents)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://couchbase.shujuwajue.com/shi-yong-node-js-ke-hu-duan/sub-document-bu-fen-geng-xin-cao-zuo.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
