remove pointers for optionality -- shockingly easy
This commit is contained in:
+2
-2
@@ -9,14 +9,14 @@ import (
|
||||
)
|
||||
|
||||
type ListInputQueryResponse struct {
|
||||
User *ListInputQueryUser `json:"user"`
|
||||
User ListInputQueryUser `json:"user"`
|
||||
}
|
||||
|
||||
type ListInputQueryUser struct {
|
||||
Id string `json:"id"`
|
||||
}
|
||||
|
||||
func ListInputQuery(client *graphql.Client, names []*string) (*ListInputQueryResponse, error) {
|
||||
func ListInputQuery(client *graphql.Client, names []string) (*ListInputQueryResponse, error) {
|
||||
variables := map[string]interface{}{
|
||||
"names": names,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user