Skip to content

Commit

Permalink
[FAB-8055] Document: Wrong Function Name Referred
Browse files Browse the repository at this point in the history
The marbles02 sample has no function named getMarblesByOwner().
This patch corrects the name.

Change-Id: I1dd89cdd5f814d1b5173ef59a8272b5080133ab1
Signed-off-by: Yuta Namiki <y-namiki@ak.jp.nec.com>
  • Loading branch information
Yuta Namiki committed Feb 5, 2018
1 parent 15bda58 commit cb20170
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/source/couchdb_as_state_database.rst
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ the JSON in the state database by using the ``GetQueryResult`` API and passing a
The query string follows the `CouchDB JSON query syntax <http://docs.couchdb.org/en/2.1.1/api/database/find.html>`__.

The `marbles02 fabric sample <https://github.com/hyperledger/fabric-samples/blob/master/chaincode/marbles02/go/marbles_chaincode.go>`__
demonstrates use of CouchDB queries from chaincode. It includes a ``getMarblesByOwner()`` function
demonstrates use of CouchDB queries from chaincode. It includes a ``queryMarblesByOwner()`` function
that demonstrates parameterized queries by passing an owner id into chaincode. It then queries the
state data for JSON documents matching the docType of “marble” and the owner id using the JSON query
syntax:
Expand Down

0 comments on commit cb20170

Please sign in to comment.