gql

package
v0.0.0-...-1f94a6f Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeGraphQLConnection

func MakeGraphQLConnection(nodeType *graphql.Object) *graphql.Object

Types

type ConnectionData

type ConnectionData struct {
	TotalCount int64
	PageInfo   PageInfo
	Edges      []EdgeData
}

type EdgeData

type EdgeData struct {
	Node   interface{}
	Cursor string
}

func MakeEdges

func MakeEdges(nodes []interface{}, cursorFunc func(m interface{}) string) []EdgeData

type PageInfo

type PageInfo struct {
	StartCursor     string
	EndCursor       string
	HasNextPage     bool
	HasPreviousPage bool
}

Jump to

Keyboard shortcuts

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