From c58aa18a2d0683b0a1e6f0597724e67b500503a0 Mon Sep 17 00:00:00 2001 From: Michael Muré Date: Sun, 29 Jul 2018 20:58:22 +0200 Subject: graphql: lazy loading for the bug relay connection --- graphql/connections/lazy_bug.go | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 graphql/connections/lazy_bug.go (limited to 'graphql/connections/lazy_bug.go') 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 +} -- cgit v1.2.3