adding in gqlgen

This commit is contained in:
talksik
2023-05-23 16:03:47 -07:00
parent a88582301e
commit a945d2ee54
11 changed files with 4072 additions and 0 deletions
+28
View File
@@ -0,0 +1,28 @@
# 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!
}