Reputation: 11
I'm trying an API that will list all values within all documents in my Cloudant database. I use '_all_docs' at the end of my API however this only shows the IDs and revs of my JSON documents, it does not show all values within the documents. Can an API show all the data within the documents, or should I be creating a 1 document with arrays (representing what would be rows on an SQL table)?
Upvotes: 1
Views: 791
Reputation: 151
If you want to display the contents of the document append the following to the query string.
include_docs=true
You can also use this on Views and Search indexes to get the complete doc.
Upvotes: 2