Last active
September 18, 2019 14:00
-
-
Save dbayarchyk/5cecaa61a0998a6635c5ccf2d128990c to your computer and use it in GitHub Desktop.
GraphQL fragment-based approach to building your components - schema.gql
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
type Query { | |
post(id: ID!): Post | |
} | |
type Post { | |
title | |
content | |
comments: [Comment!] | |
} | |
type Comment { | |
content: String! | |
author: User! | |
} | |
type User { | |
username: String! | |
avatar: String | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment