enabling include_docs in CouchCocoa?

21 views
Skip to first unread message

Dave Feldman

unread,
Nov 11, 2011, 9:26:09 PM11/11/11
to mobile-c...@googlegroups.com
How do I enable include_docs when querying Couchbase via CouchCocoa? e.g. when I call [designDocument queryViewNamed:@"myView"] how can I turn include_docs on?

Thanks,
--Dave

Jens Alfke

unread,
Nov 11, 2011, 10:11:00 PM11/11/11
to mobile-c...@googlegroups.com

On Nov 11, 2011, at 6:26 PM, Dave Feldman wrote:

How do I enable include_docs when querying Couchbase via CouchCocoa? e.g. when I call [designDocument queryViewNamed:@"myView"] how can I turn include_docs on?

Set the CouchQuery’s .prefetch property to YES.

—Jens

Dave

unread,
Nov 13, 2011, 4:14:15 PM11/13/11
to Mobile Couchbase
Thanks! (Sheepish grin as I should have found that in the docs
myself...)
>  smime.p7s
> 6KViewDownload
Reply all
Reply to author
Forward
0 new messages