dgraph-todo/schema.graphql

13 lines
204 B
GraphQL

type Task {
id: ID!
title: String! @search(by: [fulltext])
completed: Boolean! @search
user: User!
}
type User {
username: String! @id
name: String
tasks: [Task] @hasInverse(field: user)
}