Documentation ¶
Index ¶
- Constants
- func DecodeData(buffer *bytes.Buffer, key string) map[string]interface{}
- func DecodeDataAsSliceOfMaps(buffer *bytes.Buffer, key string, property string) []map[string]interface{}
- func ExecutePost(routes []graphql.Route, target string, body string) *bytes.Buffer
- func ExpectError(response ResponseBody, expectedMessage string)
- func ExpectQueryToReturnError(routes []graphql.Route, query string, expectedMessage string)
- func GetTypeNamesByTable(tableName string) []string
- func NewUuid() string
- type ErrorEntry
- type ResponseBody
Constants ¶
View Source
const GraphQLTypesQuery = `{
__schema {
types {
name
description
}
}
}`
Variables ¶
This section is empty.
Functions ¶
func DecodeDataAsSliceOfMaps ¶
func ExecutePost ¶
func ExpectError ¶
func ExpectError(response ResponseBody, expectedMessage string)
func GetTypeNamesByTable ¶
Types ¶
type ErrorEntry ¶
type ResponseBody ¶
type ResponseBody struct { Data map[string]interface{} `json:"data"` Errors []ErrorEntry `json:"errors"` }
func DecodeResponse ¶
func DecodeResponse(buffer *bytes.Buffer) ResponseBody
func NewResponseBody ¶
func NewResponseBody(operationName string, elementMap map[string]interface{}) ResponseBody
Click to show internal directories.
Click to hide internal directories.