You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@couchdb.apache.org by Luke Driscoll <lu...@gmail.com> on 2011/09/15 15:59:17 UTC

Accessing a Document's Sequence in a view

Is it at all possible for us to be able to access a documents last change
sequence, not revision, in the view code?

Thanks
Luke

Re: Accessing a Document's Sequence in a view

Posted by Luke Driscoll <lu...@gmail.com>.
Great, thanks!

On Thu, Sep 15, 2011 at 10:18, Robert Newson <rn...@apache.org> wrote:

> Add "options":{local_seq: true} at the top-level of your design doc
> and then doc._local_seq will be populated with that value.
>
>
> On 15 September 2011 14:59, Luke Driscoll <lu...@gmail.com> wrote:
> > Is it at all possible for us to be able to access a documents last change
> > sequence, not revision, in the view code?
> >
> > Thanks
> > Luke
> >
>

Re: Accessing a Document's Sequence in a view

Posted by Robert Newson <rn...@apache.org>.
Add "options":{local_seq: true} at the top-level of your design doc
and then doc._local_seq will be populated with that value.


On 15 September 2011 14:59, Luke Driscoll <lu...@gmail.com> wrote:
> Is it at all possible for us to be able to access a documents last change
> sequence, not revision, in the view code?
>
> Thanks
> Luke
>