Last active
March 26, 2020 16:16
-
-
Save joshdholtz/bc67a501da503e516a4f83522ceda4a0 to your computer and use it in GitHub Desktop.
graphql - get all users (order by email) with only the newest status
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
query UserLatestStatus { | |
users(order_by: {email: asc}) { | |
id | |
inserted_at | |
name | |
avatar_image_url | |
updated_at | |
statuses(limit: 1, order_by: {created_at: desc}) { | |
id | |
emojis | |
text | |
created_at | |
updated_at | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment