aboutsummaryrefslogblamecommitdiffstats
path: root/graphql/connections/lazy_bug.go
blob: 00692e8b669701dcf32d11329b1a5db5a71a7cc2 (plain) (tree)
1
2
3
4
5
6
7
8
9
10

                   

                                              
                                                                                  
                         
                        


                     
                                               


                                           
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
}