schemas

package
v0.0.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 28, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const GraphQLTypesQuery = `{
  __schema {
	types {
	  name
	  description
	}
  }
}`

Variables

This section is empty.

Functions

func DecodeData

func DecodeData(buffer *bytes.Buffer, key string) map[string]interface{}

func DecodeDataAsSliceOfMaps

func DecodeDataAsSliceOfMaps(buffer *bytes.Buffer, key string, property string) []map[string]interface{}

func ExecutePost

func ExecutePost(routes []graphql.Route, target string, body string) *bytes.Buffer

func ExpectQueryToReturnError

func ExpectQueryToReturnError(routes []graphql.Route, query string, expectedMessage string)

func GetTypeNamesByTable

func GetTypeNamesByTable(tableName string) []string

func NewUuid

func NewUuid() string

Types

type ErrorEntry

type ErrorEntry struct {
	Message   string   `json:"message"`
	Path      []string `json:"path"`
	Locations []struct {
		Line   int `json:"line"`
		Column int `json:"column"`
	} `json:"locations"`
}

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL