Created
January 3, 2018 14:24
-
-
Save maticzav/4ded946dff6ed742a96a198bba922a4a 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
# database/datamodel/types.graphql | |
type User { | |
id: ID! @unique | |
createdAt: DateTime! | |
updatedAt: DateTime! | |
githubUserId: String! @unique | |
name: String! | |
bio: String! | |
public_repos: Int! | |
public_gists: Int! | |
notes: [Note!]! @relation(name: "UserNote") | |
} | |
type Note { | |
id: ID! @unique | |
owner: User! @relation(name: "UserNote") | |
text: String! | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment