Skip to content

Instantly share code, notes, and snippets.

@coco98
Created April 23, 2018 13:51
Show Gist options
  • Save coco98/2a77f5803a7337ebad653740b0f6a924 to your computer and use it in GitHub Desktop.
Save coco98/2a77f5803a7337ebad653740b0f6a924 to your computer and use it in GitHub Desktop.
A simple "read" query in GraphQL
# Fetch authors and their articles
# and relevant fields within those objects only
query {
author {
id
name
articles {
id
title
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment