back out interfaces/unions, in preparation for new approach

This commit is contained in:
Ben Kraft
2020-07-16 09:53:21 -07:00
parent e9b90d861f
commit af4a765a32
10 changed files with 87 additions and 138 deletions
-10
View File
@@ -1,10 +0,0 @@
{
root {
id
name
children {
id
name
}
}
}
-10
View File
@@ -1,10 +0,0 @@
type Response struct {
Root struct {
Id string `json:"id"`
Name string `json:"name"`
Children []struct {
Id string `json:"id"`
Name string `json:"name"`
} `json:"children"`
} `json:"root"`
}
-11
View File
@@ -1,11 +0,0 @@
fragment profileData on User {
name
emails
}
query {
user {
id
...profileData
}
}
-11
View File
@@ -1,11 +0,0 @@
type Response struct {
User *struct {
Id string `json:"id"`
profileData
} `json:"user"`
}
type profileData struct {
Name *string `json:"name"`
Emails []string `json:"emails"`
}
-5
View File
@@ -1,5 +0,0 @@
{
randomLeaf {
__typename
}
}
-5
View File
@@ -1,5 +0,0 @@
type Response struct {
RandomLeaf struct {
Typename *string `json:"__typename"`
} `json:"randomLeaf"`
}