diff options
author | Michael Muré <batolettre@gmail.com> | 2018-07-29 20:58:22 +0200 |
---|---|---|
committer | Michael Muré <batolettre@gmail.com> | 2018-07-29 20:58:22 +0200 |
commit | c58aa18a2d0683b0a1e6f0597724e67b500503a0 (patch) | |
tree | 06b7611ebce2a4cbe0c99f72729517cb8114e3f1 /graphql/connections/lazy_bug.go | |
parent | 08f03ecf3cbbc350585acf0492966681ec449a94 (diff) | |
download | git-bug-c58aa18a2d0683b0a1e6f0597724e67b500503a0.tar.gz git-bug-c58aa18a2d0683b0a1e6f0597724e67b500503a0.zip |
graphql: lazy loading for the bug relay connection
Diffstat (limited to 'graphql/connections/lazy_bug.go')
-rw-r--r-- | graphql/connections/lazy_bug.go | 10 |
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 +} |