Created
October 7, 2021 20:04
-
-
Save vestrel00/0460cea533c97fbfecba89287a35869c to your computer and use it in GitHub Desktop.
A query to get the first 20 Gmail emails ordered by email address in descending order
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
val emails = Contacts(context).data() | |
.query() | |
.emails() | |
.where(Fields.Email.Address endsWith "gmail.com") | |
.orderBy(Fields.Email.Address.desc(ignoreCase = true)) | |
.offset(0) | |
.limit(20) | |
.find() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment