relay

package
v0.0.13 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2019 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package relay implements common relay GraphQL query resovlers required by the GraphQL transport layer

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPageInfoResolver

func NewPageInfoResolver(
	startCursor *string,
	endCursor *string,
	hasNextPage bool,
	hasPreviousPage bool) (relay.PageInfoResolverContract, error)

NewPageInfoResolver creates new instance of the pageInfoResolver, setting up all dependencies and returns the instance startCursor: Mandatory. Reference to the start cursor endCursor: Mandatory. Reference to the end cursor hasNextPage: Mandatory. Reference to the value indicates whether returned page has next page to be retrieved hasPreviousPage: Mandatory. Reference to the value indicates whether returned page has previous page to be retrieved Returns the new instance or error if something goes wrong

Types

This section is empty.

Jump to

Keyboard shortcuts

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