title: Couchbase N1QL: How to get complete Document including ID and CAS with SELECT
body: <p>I am using Couchbase 4.0 beta with java-client 2.1.3.</p>
  
  <p>The <code>Bucket.get(id)</code> returns <code>JsonDocument</code> from which I can get <code>id</code> and <code>cas</code> as well as the content. Now I want to query on secondary indices using <code>N1QL (select *)</code>. However, the <code>QueryResult</code> only returns rows of <code>JsonObject</code>s which are just the document contents. Is there anyway I can get the meta data (<code>id</code> and <code>cas</code>) too?</p>