aboutsummaryrefslogtreecommitdiffstats
path: root/graphql/models/edges.go
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2019-09-04 21:05:18 +0200
committerGitHub <noreply@github.com>2019-09-04 21:05:18 +0200
commit3ad2eeb5d07c14a039e0f0028b84033ff9b2c7db (patch)
tree84711541f4164f3c2a86e307732cc9e26e3d3618 /graphql/models/edges.go
parentc4bebed2f2ad1e0ec673bbfbbe445bfad963453a (diff)
parent7df170939f2bad0f03b834dda5af1b55bd0d6830 (diff)
downloadgit-bug-3ad2eeb5d07c14a039e0f0028b84033ff9b2c7db.tar.gz
Merge pull request #214 from MichaelMure/label-connection
graphql: make repository.validLabels a connection
Diffstat (limited to 'graphql/models/edges.go')
-rw-r--r--graphql/models/edges.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/graphql/models/edges.go b/graphql/models/edges.go
index 4bf10fd3..6a331e3e 100644
--- a/graphql/models/edges.go
+++ b/graphql/models/edges.go
@@ -24,3 +24,8 @@ func (e TimelineItemEdge) GetCursor() string {
func (e IdentityEdge) GetCursor() string {
return e.Cursor
}
+
+// GetCursor return the cursor entry of an edge
+func (e LabelEdge) GetCursor() string {
+ return e.Cursor
+}