retrieve doc with no attachements
Hello
Would like to use the version with attachements approach outlined in this http://blog.couchbase.com/simple-document-versioning-couchdb article but do not want to re-store the previous attachments every time:
Rev2:
{"_id":"5ae4679615fa4503992d39a2c5000b0c","_rev":"2-2a28c28030f67c725294bf39c734c984","field1":1,"field2":"one","jquery.couch.attachPrevRev":true,"_revs_info":[{"rev":"2-2a28c28030f67c725294bf39c734c984","status":"available"},{"rev":"1-a6d498edaedb8f5852a86cc7b02fb2fd","status":"available"}]}
Rev3:
{"_id":"5ae4679615fa4503992d39a2c5000b0c","_rev":"3-9f19a5719f366ea376d0ce9267ef8a52","field1":2,"field2":"two","jquery.couch.attachPrevRev":true,"_revs_info":[{"rev":"3-9f19a5719f366ea376d0ce9267ef8a52","status":"available"},{"rev":"2-2a28c28030f67c725294bf39c734c984","status":"available"},{"rev":"1-a6d498edaedb8f5852a86cc7b02fb2fd","status":"available"}],"_attachments":{"rev-2":{"content_type":"application/json","revpos":3,"digest":"md5-6N71yRV2JIcXfcYjfqHgAg==","length":294,"stub":true}}}
On openDoc or read can I set a default that attachement are not retrieved so that each version added as attachements represents one specific version? Have looked around but cant seem to find the flag...
Thanks