Details
-
Bug
-
Resolution: Unresolved
-
Test Blocker
-
None
-
None
-
None
-
*Location*: https://docs.couchbase.com/sync-gateway/current/data-modeling.html#value
*User-Agent*: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:109.0) Gecko/20100101 Firefox/112.0
*Screen Resolution*: 3440 x 1440
Description
The section describing what a document value can be is misleading.
Sync Gateway only allows JSON objects - not JSON values (such as numbers, strings, arrays)
Value
The document value is either:
- A JSON value, termed a Document.
This JSON object is itself collection of key/value pairs, where the values may be numbers, strings, arrays or even nested objects themselves. As a result documents can represent highly-complex data structures in a readily parsable and self-organizing manner.
The paragraph below the bullet point is correct, and other references on the page are also accurate. But the bullet point text needs updating to fix the ambiguity.
"A JSON value, termed a Document."
should be
"A JSON object, termed a Document."
Reporter: Ben Brooks
E-mail: ben.brooks@couchbase.com