Add GraphQL schema

This commit is contained in:
Ian Adam Naval 2021-10-08 18:40:00 -04:00
parent 19f0915c96
commit 9000d16511
Signed by: potato
GPG Key ID: 7E65F1308E7028C4

12
schema.graphql Normal file
View File

@ -0,0 +1,12 @@
type Task {
id: ID!
title: String!
completed: Boolean!
user: User!
}
type User {
username: String! @id
name: String
tasks: [Task] @hasInverse(field: user)
}