update server boilerplate to use graphql

This commit is contained in:
Lakhan Samani
2021-07-08 17:45:19 +05:30
parent 9250257d9e
commit 592cede51f
13 changed files with 3006 additions and 64 deletions

View File

@@ -0,0 +1,20 @@
// Code generated by github.com/99designs/gqlgen, DO NOT EDIT.
package model
type NewTodo struct {
Text string `json:"text"`
UserID string `json:"userId"`
}
type Todo struct {
ID string `json:"id"`
Text string `json:"text"`
Done bool `json:"done"`
User *User `json:"user"`
}
type User struct {
ID string `json:"id"`
Name string `json:"name"`
}