remove pointers for optionality -- shockingly easy

This commit is contained in:
Ben Kraft
2021-03-22 17:39:22 -07:00
parent fed38e4f55
commit 463e3ed319
16 changed files with 39 additions and 38 deletions
+3 -3
View File
@@ -9,7 +9,7 @@ import (
)
type QueryWithStructsResponse struct {
User *QueryWithStructsUser `json:"user"`
User QueryWithStructsUser `json:"user"`
}
type QueryWithStructsUser struct {
@@ -17,8 +17,8 @@ type QueryWithStructsUser struct {
}
type QueryWithStructsUserAuthMethodsAuthMethod struct {
Provider *string `json:"provider"`
Email *string `json:"email"`
Provider string `json:"provider"`
Email string `json:"email"`
}
func QueryWithStructs(client *graphql.Client) (*QueryWithStructsResponse, error) {