Last active
October 18, 2020 20:18
-
-
Save shrirambalakrishnan/f8b2520ef9d6e1a3d7157e62c31fdfdc to your computer and use it in GitHub Desktop.
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
const typeDefs = gql` | |
input PostInputType { | |
id: Int! | |
title: String! | |
description: String | |
} | |
type CommentType { | |
id: Int! | |
comment: String! | |
} | |
type PostType { | |
id: Int! | |
title: String | |
description: String | |
comments: [CommentType] | |
} | |
type UserType { | |
id: Int | |
name: String | |
email: String | |
posts: [PostType] | |
} | |
type Query { | |
users: [UserType] | |
posts: [PostType] | |
} | |
`; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment