Google News
logo
CouchDB - Interview Questions
What Is Document in Couchbase?
In Couchbase, a document usually refers to an entry in the database. A document consists of an ID that happens to be unique by nature. Its value contains the real application data. Documents are stored on the server as JSON. While JSON is a structured format that happens to be a structured format, it can be searched and accordingly get queried by following the below-mentioned command.

Syntax : 
{
“type”: “product”,
“sku”: “CBSRV45DP”,
“msrp”: [5.49, “USD”],
“ctime”: “092011”,
“mfg”: “couchbase”,
“tags”: [“server”, “database”, “couchbase”, “nosql”, “fast”, “json”, “awesome”]
}
Advertisement