Add GraphQL schema
This commit is contained in:
parent
19f0915c96
commit
9000d16511
12
schema.graphql
Normal file
12
schema.graphql
Normal 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)
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user