back out interfaces/unions, in preparation for new approach
This commit is contained in:
-10
@@ -1,10 +0,0 @@
|
||||
{
|
||||
root {
|
||||
id
|
||||
name
|
||||
children {
|
||||
id
|
||||
name
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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
@@ -1,11 +0,0 @@
|
||||
fragment profileData on User {
|
||||
name
|
||||
emails
|
||||
}
|
||||
|
||||
query {
|
||||
user {
|
||||
id
|
||||
...profileData
|
||||
}
|
||||
}
|
||||
-11
@@ -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
@@ -1,5 +0,0 @@
|
||||
{
|
||||
randomLeaf {
|
||||
__typename
|
||||
}
|
||||
}
|
||||
@@ -1,5 +0,0 @@
|
||||
type Response struct {
|
||||
RandomLeaf struct {
|
||||
Typename *string `json:"__typename"`
|
||||
} `json:"randomLeaf"`
|
||||
}
|
||||
Reference in New Issue
Block a user