Created
April 23, 2018 13:51
-
-
Save coco98/2a77f5803a7337ebad653740b0f6a924 to your computer and use it in GitHub Desktop.
A simple "read" query in GraphQL
This file contains 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
# 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