Skip to content

Commit

Permalink
feat: add GraphQL response type
Browse files Browse the repository at this point in the history
  • Loading branch information
mefellows committed Jun 27, 2022
1 parent 09bde2a commit c040311
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions dsl/graphql/response.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package graphql

// GraphQLRseponse models the GraphQL Response format.
// See also http://spec.graphql.org/October2021/#sec-Response-Format
type Response struct {
Data interface{} `json:"data,omitempty"`
Errors []interface{} `json:"errors,omitempty"`
Extensions map[string]interface{} `json:"extensions,omitempty"`
}

0 comments on commit c040311

Please sign in to comment.