aboutsummaryrefslogtreecommitdiffstats
path: root/graphql/models/edges.go
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2018-07-29 19:37:06 +0200
committerMichael Muré <batolettre@gmail.com>2018-07-29 19:37:32 +0200
commitc351cfd30d59c9179cc940f9ae15c461462e1a50 (patch)
treef2a218d26f350f265200e2ee89a1c94ca26fd770 /graphql/models/edges.go
parent8fa0b258ac89781dae269790a4bde09cbcd2f324 (diff)
downloadgit-bug-c351cfd30d59c9179cc940f9ae15c461462e1a50.tar.gz
graphql: directly return a connection, cleaning
Diffstat (limited to 'graphql/models/edges.go')
-rw-r--r--graphql/models/edges.go13
1 files changed, 13 insertions, 0 deletions
diff --git a/graphql/models/edges.go b/graphql/models/edges.go
new file mode 100644
index 00000000..677d13f5
--- /dev/null
+++ b/graphql/models/edges.go
@@ -0,0 +1,13 @@
+package models
+
+func (e OperationEdge) GetCursor() string {
+ return e.Cursor
+}
+
+func (e BugEdge) GetCursor() string {
+ return e.Cursor
+}
+
+func (e CommentEdge) GetCursor() string {
+ return e.Cursor
+}