Documentation ¶
Index ¶
- Variables
- func ASTToJSON(t *testing.T, a ast.Node) interface{}
- func ContainSubset(super map[string]interface{}, sub map[string]interface{}) bool
- func ContainSubsetSlice(super []interface{}, sub []interface{}) bool
- func Diff(a, b interface{}) []string
- func Execute(t *testing.T, ep executor.ExecuteParams) *types.GraphQLResult
- func GetHero(episode interface{}) interface{}
- func Parse(t *testing.T, query string) *ast.Document
- type StarWarsChar
Constants ¶
This section is empty.
Variables ¶
View Source
var IntrospectionQuery = `` /* 1093-byte string literal not displayed */
Functions ¶
func ContainSubset ¶
func ContainSubsetSlice ¶
func ContainSubsetSlice(super []interface{}, sub []interface{}) bool
func Execute ¶
func Execute(t *testing.T, ep executor.ExecuteParams) *types.GraphQLResult
Types ¶
type StarWarsChar ¶
type StarWarsChar struct { Id string Name string Friends []StarWarsChar AppearsIn []int HomePlanet string PrimaryFunction string }
var ( Luke StarWarsChar Vader StarWarsChar Han StarWarsChar Leia StarWarsChar Tarkin StarWarsChar Threepio StarWarsChar Artoo StarWarsChar HumanData map[int]StarWarsChar DroidData map[int]StarWarsChar StarWarsSchema types.GraphQLSchema )
func GetDroid ¶
func GetDroid(id int) StarWarsChar
func GetHuman ¶
func GetHuman(id int) StarWarsChar
Click to show internal directories.
Click to hide internal directories.