Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Learning Couchbase

You're reading from  Learning Couchbase

Product type Book
Published in Nov 2015
Publisher
ISBN-13 9781785288593
Pages 248 pages
Edition 1st Edition
Languages
Author (1):
Henry Potsangbam Henry Potsangbam
Profile icon Henry Potsangbam

Table of Contents (12) Chapters

Introduction to Couchbase The Couchbase Administration Interface Storing Documents in Couchbase Using Buckets Designing a Document for Couchbase Introducing Client SDK Retrieving Documents without Keys Using Views Understanding SQL-Like Queries – N1QL Full Text Search Using ElasticSearch Data Replication and Compaction Administration, Tuning, and Monitoring Case Study – An E-Commerce Application Index

Using the document editor


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.

User

You can enter the User document using the document editor of the web console, as shown here:

The User document

Order

Just like User, enter the Order details as follows. Make sure that you select the LearningCouchbase bucket.

Order document

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.

Documents

Change the quantity from 6 to 8 and save it as follows:

The document editor - updating...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}