Skip to content

Instantly share code, notes, and snippets.

@joshdholtz
Last active March 26, 2020 16:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joshdholtz/bc67a501da503e516a4f83522ceda4a0 to your computer and use it in GitHub Desktop.
Save joshdholtz/bc67a501da503e516a4f83522ceda4a0 to your computer and use it in GitHub Desktop.
graphql - get all users (order by email) with only the newest status
query UserLatestStatus {
users(order_by: {email: asc}) {
id
email
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