Versions in this module Expand all Collapse all v0 v0.0.2 Feb 8, 2019 v0.0.1 Feb 7, 2019 Changes in this version + const PREFIX + var ConnectionArgs = graphql.FieldConfigArgument + func CursorToOffset(cursor ConnectionCursor) (int, error) + func GetOffsetWithDefault(cursor ConnectionCursor, defaultOffset int) int + func GlobalIDField(typeName string, idFetcher GlobalIDFetcherFn) *graphql.Field + func MutationWithClientMutationID(config MutationConfig) *graphql.Field + func NewConnectionArgs(configMap graphql.FieldConfigArgument) graphql.FieldConfigArgument + func PluralIdentifyingRootField(config PluralIdentifyingRootFieldConfig) *graphql.Field + func ToGlobalID(ttype string, id string) string + type ArraySliceMetaInfo struct + ArrayLength int + SliceStart int + type Connection struct + Edges []*Edge + Nodes []interface{} + PageInfo PageInfo + TotalCount int + func ConnectionFromArray(data []interface{}, args ConnectionArguments) *Connection + func ConnectionFromArraySlice(arraySlice []interface{}, args ConnectionArguments, meta ArraySliceMetaInfo) *Connection + func NewConnection() *Connection + type ConnectionArguments struct + After ConnectionCursor + Before ConnectionCursor + First int + Last int + func NewConnectionArguments(filters map[string]interface{}) ConnectionArguments + type ConnectionArgumentsConfig struct + After ConnectionCursor + Before ConnectionCursor + First *int + Last *int + type ConnectionConfig struct + ConnectionFields graphql.Fields + EdgeFields graphql.Fields + Name string + NodeType graphql.Output + type ConnectionCursor string + func CursorForObjectInConnection(data []interface{}, object interface{}) ConnectionCursor + func OffsetToCursor(offset int) ConnectionCursor + type Edge struct + Cursor ConnectionCursor + Node interface{} + type EdgeType struct + Cursor ConnectionCursor + Node interface{} + type GlobalIDFetcherFn func(obj interface{}, info graphql.ResolveInfo, ctx context.Context) (string, error) + type GraphQLConnectionDefinitions struct + ConnectionType *graphql.Object + EdgeType *graphql.Object + func ConnectionDefinitions(config ConnectionConfig) *GraphQLConnectionDefinitions + type IDFetcherFn func(id string, info graphql.ResolveInfo, ctx context.Context) (interface{}, error) + type MutationConfig struct + InputFields graphql.InputObjectConfigFieldMap + MutateAndGetPayload MutationFn + Name string + OutputFields graphql.Fields + type MutationFn func(inputMap map[string]interface{}, info graphql.ResolveInfo, ctx context.Context) (map[string]interface{}, error) + type NodeDefinitions struct + NodeField *graphql.Field + NodeInterface *graphql.Interface + func NewNodeDefinitions(config NodeDefinitionsConfig) *NodeDefinitions + type NodeDefinitionsConfig struct + IDFetcher IDFetcherFn + TypeResolve graphql.ResolveTypeFn + type PageInfo struct + EndCursor ConnectionCursor + HasNextPage bool + HasPreviousPage bool + StartCursor ConnectionCursor + type PluralIdentifyingRootFieldConfig struct + ArgName string + Description string + InputType graphql.Input + OutputType graphql.Output + ResolveSingleInput ResolveSingleInputFn + type ResolveSingleInputFn func(input interface{}) interface + type ResolvedGlobalID struct + ID string + Type string + func FromGlobalID(globalID string) *ResolvedGlobalID