Let's familiarize ourselves with the document editor provided in the Couchbase admin console. Let's create the document that was just discussed using the document editor. Make sure that you store the user and order documents as defined in the bucket, LearningCouchbase that we created earlier.
Just like User, enter the Order details as follows. Make sure that you select the LearningCouchbase bucket.
Now you know how to create a document using the document editor. Let me explain how you can update an attribute, say quantity
, in the order document. Go to the LearningCouchbase bucket's document display list, as shown in the following screenshot. Key in its document ID, which is 2015051527
, in the Lookup Id textbox, and click on the Lookup Id button.
Change the quantity from 6
to 8
and save it as follows: