pagination

package
v0.0.0-...-c33e8bb Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidAfterCursor = errors.New(`"after" is not valid cursor`)
	ErrNegativeFirst      = errors.New(`"first" is negative number`)
)

...

Functions

This section is empty.

Types

type Interface

type Interface interface {
	Pipelines() mongo.Pipeline
	NextPipelines() mongo.Pipeline
}

Interface ...

func Validate

func Validate(after *string, first *int) (Interface, error)

Validate validate pagination options from graphql

Jump to

Keyboard shortcuts

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