push type-name into types.go

This commit is contained in:
Ben Kraft
2020-04-10 14:30:56 -07:00
parent 4f02619b0b
commit dfea9bf128
5 changed files with 16 additions and 14 deletions
+2 -2
View File
@@ -8,7 +8,7 @@ import (
"github.com/Khan/genql/graphql"
)
type getViewerResponse = struct {
type getViewerResponse struct {
Viewer struct {
MyName *string
} `json:"viewer"`
@@ -26,7 +26,7 @@ query getViewer {
return &retval, err
}
type getUserResponse = struct {
type getUserResponse struct {
User *struct {
TheirName *string `json:"theirName"`
} `json:"user"`