iriscouch / follow

Very stable, very reliable, NodeJS CouchDB _changes follower
Apache License 2.0
393 stars 82 forks source link

question: How I can recieve `change` with previous revision of doc? #77

Open Sigura opened 8 years ago

Sigura commented 8 years ago

Other words, how could I get differences of changes?

as I see revs_info does not work. Could I make PR to support it?

Sigura commented 8 years ago

I found only long way:

  1. request doc with revs_info=true GET couchDb/id?revs_info=true
  2. then request previous rev GET couchDb/id?rev=rev
jcrugzz commented 8 years ago

Yea i dont think its possible to query this with changes but you can do that get request one each change event.

Sigura commented 8 years ago

I did, thank you!