Skip to content
Discussion options

You must be logged in to vote

Hi @M00r14rty, this is a good question!

How to load only Contacts modified after a specific timestamp?

As you pointed out in your question, I believe you are already doing something like this,

fun loadContactsModifiedAfter(timestampMillis: Long): List<Contact> = Contacts(this)
    .query()
    .where { Contact.LastUpdatedTimestamp greaterThan timestampMillis }
    .find()

This is technically the answer to your question. But I can see it's not working the way you want it to, so let's dig a little deeper 🙂

First of all, this library rocks!

Thanks! ❤️❤️❤️❤️❤️❤️

load only Contacts modified after a specific timestamp

The Fields.Contact.LastUpdatedTimestamp should be what you need to use.…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by M00r14rty
Comment options

You must be logged in to vote
1 reply
@vestrel00
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested
2 participants