git-bug/graphql/connections/lazy_identity.go

15 lines
347 B
Go

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
}