aboutsummaryrefslogtreecommitdiffstats
path: root/graphql/connections/lazy_bug.go
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2018-07-29 20:58:22 +0200
committerMichael Muré <batolettre@gmail.com>2018-07-29 20:58:22 +0200
commitc58aa18a2d0683b0a1e6f0597724e67b500503a0 (patch)
tree06b7611ebce2a4cbe0c99f72729517cb8114e3f1 /graphql/connections/lazy_bug.go
parent08f03ecf3cbbc350585acf0492966681ec449a94 (diff)
downloadgit-bug-c58aa18a2d0683b0a1e6f0597724e67b500503a0.tar.gz
graphql: lazy loading for the bug relay connection
Diffstat (limited to 'graphql/connections/lazy_bug.go')
-rw-r--r--graphql/connections/lazy_bug.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/graphql/connections/lazy_bug.go b/graphql/connections/lazy_bug.go
new file mode 100644
index 00000000..35dcb687
--- /dev/null
+++ b/graphql/connections/lazy_bug.go
@@ -0,0 +1,10 @@
+package connections
+
+type LazyBugEdge struct {
+ Id string
+ Cursor string
+}
+
+func (lbe LazyBugEdge) GetCursor() string {
+ return lbe.Cursor
+}