Skip to content

Commit

Permalink
[FAB-8738] Document Reserved Field Names in CouchDB
Browse files Browse the repository at this point in the history
This patch add description of reserved field names in a JSON
document to be put a CouchDB state database.

Change-Id: I679a9de8cd73f1c4dc8b3a104d8e2a5e6657362e
Signed-off-by: Yuta Namiki <y-namiki@ak.jp.nec.com>
  • Loading branch information
Yuta Namiki authored and denyeart committed Mar 9, 2018
1 parent fdff463 commit 5533049
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docs/source/couchdb_as_state_database.rst
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,14 @@ default embedded LevelDB, and move to CouchDB if you require the additional comp
It is a good practice to model chaincode asset data as JSON, so that you have the option to perform
complex rich queries if needed in the future.

.. note:: A JSON document cannot use the following field names at the top level.
These are reserved for internal use.

- ``_deleted``
- ``_id``
- ``_rev``
- ``~version``

Using CouchDB from Chaincode
----------------------------

Expand Down

0 comments on commit 5533049

Please sign in to comment.