Created
November 13, 2018 18:45
-
-
Save abhiaiyer91/6c632e75e46b1d65636e3d118828d214 to your computer and use it in GitHub Desktop.
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
type User { | |
id: ID! @unique | |
email: String! @unique | |
posts: [Post!]! | |
name: String! | |
} | |
type Post { | |
id: ID! @unique | |
createdAt: DateTime! | |
title: String! | |
published: Boolean! @default(value: "false") | |
author: User! | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment