Files
be_absensi_sas/backend/graph/graphqls/schema.graphqls
2024-01-10 16:23:04 +07:00

29 lines
321 B
GraphQL

# GraphQL schema example
#
# https://gqlgen.com/getting-started/
type Todo {
id: ID!
text: String!
done: Boolean!
user: User!
}
type User {
id: ID!
name: String!
}
type Query {
todos: [Todo!]!
}
input NewTodo {
text: String!
userId: String!
}
type Mutation {
createTodo(input: NewTodo!): Todo!
}