144
144
// field is observed to change after a transaction is applied. The revno
145
145
// parameter holds the currently known revision number for the document.
146
146
// Non-existent documents are represented by a -1 revno.
147
func (w *Watcher) Watch(collection string, id interface{}, revno int64, ch chan<- Change) {
147
func (w *Watcher) Watch(collection string, id string, revno int64, ch chan<- Change) {
151
151
w.sendReq(reqWatch{watchKey{collection, id}, watchInfo{ch, revno}})