diff options
author | Michael Muré <michael.mure@consensys.net> | 2019-03-31 21:44:14 +0200 |
---|---|---|
committer | Michael Muré <batolettre@gmail.com> | 2019-04-01 14:03:13 +0200 |
commit | 15c258cdc4ba37820362a44dfc2636ed1ff92b4c (patch) | |
tree | 0790e36bf4846b12b367f12670540eec6ee023f3 /graphql/connections/lazy_identity.go | |
parent | e028b895aa21553937d732044b7bb0a15c5276f6 (diff) | |
download | git-bug-15c258cdc4ba37820362a44dfc2636ed1ff92b4c.tar.gz |
graphql: expose allIdentities, identities and userIdentity in the repo
Diffstat (limited to 'graphql/connections/lazy_identity.go')
-rw-r--r-- | graphql/connections/lazy_identity.go | 12 |
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 +} |