From 15c258cdc4ba37820362a44dfc2636ed1ff92b4c Mon Sep 17 00:00:00 2001 From: Michael Muré Date: Sun, 31 Mar 2019 21:44:14 +0200 Subject: graphql: expose allIdentities, identities and userIdentity in the repo --- graphql/connections/lazy_identity.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 graphql/connections/lazy_identity.go (limited to 'graphql/connections/lazy_identity.go') 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 +} -- cgit