aboutsummaryrefslogtreecommitdiffstats
path: root/graphql/connections/lazy_identity.go
diff options
context:
space:
mode:
Diffstat (limited to 'graphql/connections/lazy_identity.go')
-rw-r--r--graphql/connections/lazy_identity.go12
1 files changed, 12 insertions, 0 deletions
diff --git a/graphql/connections/lazy_identity.go b/graphql/connections/lazy_identity.go
new file mode 100644
index 00000000..34ba579a
--- /dev/null
+++ b/graphql/connections/lazy_identity.go
@@ -0,0 +1,12 @@
+package connections
+
+// LazyIdentityEdge is a special relay edge used to implement a lazy loading connection
+type LazyIdentityEdge struct {
+ Id string
+ Cursor string
+}
+
+// GetCursor return the cursor of a LazyIdentityEdge
+func (lbe LazyIdentityEdge) GetCursor() string {
+ return lbe.Cursor
+}