do our own aliasing if the queries aren't right

This commit is contained in:
Ben Kraft
2020-01-02 19:01:26 -08:00
parent 0bce896722
commit 12605986d0
4 changed files with 26 additions and 21 deletions
+2 -2
View File
@@ -52,11 +52,11 @@ func Main() {
if err != nil {
return
}
fmt.Println("you are", *viewerResp.Viewer.Name)
fmt.Println("you are", *viewerResp.Viewer.MyName)
userResp, err := getUser(context.Background(), graphqlClient, username)
if err != nil {
return
}
fmt.Println(username, "is", *userResp.User.Name)
fmt.Println(username, "is", *userResp.User.TheirName)
}