aboutsummaryrefslogtreecommitdiffstats
path: root/graphql/connections/lazy_bug.go
blob: 00692e8b669701dcf32d11329b1a5db5a71a7cc2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
package connections

import "github.com/MichaelMure/git-bug/entity"

// LazyBugEdge is a special relay edge used to implement a lazy loading connection
type LazyBugEdge struct {
	Id     entity.Id
	Cursor string
}

// GetCursor return the cursor of a LazyBugEdge
func (lbe LazyBugEdge) GetCursor() string {
	return lbe.Cursor
}