forked from labd/commercetools-go-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
types_graph_ql.go
36 lines (29 loc) · 997 Bytes
/
types_graph_ql.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
// Automatically generated, do not edit
package commercetools
// GraphQLVariablesMap is a map
type GraphQLVariablesMap map[string]interface{}
// GraphQLError is a standalone struct
type GraphQLError struct {
Path []interface{} `json:"path"`
Message string `json:"message"`
Locations []GraphQLErrorLocation `json:"locations"`
}
func (obj GraphQLError) Error() string {
return obj.Message
}
// GraphQLErrorLocation is a standalone struct
type GraphQLErrorLocation struct {
Line int `json:"line"`
Column int `json:"column"`
}
// GraphQLRequest is a standalone struct
type GraphQLRequest struct {
Variables *GraphQLVariablesMap `json:"variables,omitempty"`
Query string `json:"query"`
OperationName string `json:"operationName,omitempty"`
}
// GraphQLResponse is a standalone struct
type GraphQLResponse struct {
Errors []GraphQLError `json:"errors,omitempty"`
Data interface{} `json:"data,omitempty"`
}