> On Apr 20, 2015, at 9:40 AM, Victor Fernandez <[email protected]> 
> wrote:
> 
> Does anyone know the best way to filter documents in the syncronization 
> process between Couchbase Lite and Sync Gateway using the date as a 
> discriminative element?
> For example, today is April 20. I want to syncronize all the documents with 
> dates April 17,18,19 and 20.

Are you talking about pull or push (or both?) The answers are different…

> I want to discard documents with previous dates.

You’ll need to find the documents, probably using a view query, and then call 
-purgeDocument on each one.

—Jens

-- 
You received this message because you are subscribed to the Google Groups 
"Couchbase Mobile" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/mobile-couchbase/482854E1-89F8-4C3E-A8C9-D8AFEFB3ABAA%40couchbase.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to