for Chris Anderson (do filters really work?)

47 views
Skip to first unread message

Seung Chan Lim

unread,
Nov 23, 2014, 5:22:52 PM11/23/14
to mobile-c...@googlegroups.com
Hi Chris,

So I'm trying out the filters again, but for some reason even if I return false from my filter function, I get back every doc in the local db.

This is my filter function

filters: {by_attr: (function(doc, req) { 
return false;
   }).toString()
}

I JSON.stringify the above, of course.

I know this seems crazy, but I just wanted to make sure that the filters do indeed work.

slim 

J. Chris Anderson

unread,
Dec 5, 2014, 2:25:04 PM12/5/14
to mobile-c...@googlegroups.com
Are you doing push replication, or a filtered _changes request? Can you show the code that returns every doc instead of the filtered docs?
Reply all
Reply to author
Forward
0 new messages