Scaffold GraphQL server

This commit is contained in:
David Stotijn
2019-12-01 14:47:25 +01:00
parent 1164837247
commit ef96a69baa
8 changed files with 2986 additions and 4 deletions

20
pkg/api/models_gen.go Normal file
View File

@ -0,0 +1,20 @@
// Code generated by github.com/99designs/gqlgen, DO NOT EDIT.
package api
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"`
}