aboutsummaryrefslogblamecommitdiffstats
path: root/graphql/connections/lazy_identity.go
blob: 3274dd7e418524a82a18198fc7380093ac00c24e (plain) (tree)
1
2
3
4
5
6
7

                   

                                              

                                                                                       
                        






                                                    
package connections

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

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

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