How to restrict _rev_info in cloudant result json

101 Views Asked by At

I am using cloudant for my Project. Every time i update a document and fetch a document, the result JSON comes with { _rev_info : [...] } (contains 500+ rev history). how i restrict & fetch data without _rev_info in cloudant??

{ name: "test",
  "age":22,
  _revs_info: [
          { rev: '510-454.....',
            status: 'available' }, 
            {....}
 ]
}
1

There are 1 best solutions below

1
Will Holley On BEST ANSWER

_revs_info is only be returned if you explicitly request it by passing revs_info=true in the query string. If you don't require the revision history, just exclude that parameter.