Retrieve data NoSQL


show more Retrieving data provides you with in-depth training on Developer. Taught by Joseph LeBlanc as part of the Up and Running with NoSQL Databases show less
please wait ...

Retrieving data

While the user interface of CouchDB is handy for creating new databases and documents quickly, you will eventually want to get the data from those documents in a standardized way. Fortunately, JSON-formatted data is readily available from CouchDB through HTTP. We've started up CouchDB, and it lists all the databases here. Let's open up a new tab and go to /_all_dbs. You'll notice that those three databases are now listed again only in JSON format.

If we go to /restaurant, you might expect that all the records from restaurant are listed. However, this only lists the information about the restaurant database. To get a list of all of the documents in the restaurant database, go to /restaurant/_all_docs. Now again, we see all the same information that you would see if you navigate to restaurant here in Futon. We'd also like to be able to get the information about a single document.

To do that, copy the ID and paste it in as the last segment of the URL. All of the d...

Retrieving data
Video duration: 1m 35s 56m 57s Intermediate

Viewers:

Retrieving data provides you with in-depth training on Developer. Taught by Joseph LeBlanc as part of the Up and Running with NoSQL Databases

please wait ...