From e7648996c8f278d061fe03a5c4d255049da765e5 Mon Sep 17 00:00:00 2001 From: Michael Muré Date: Thu, 23 Aug 2018 19:19:16 +0200 Subject: bug: add a new BugExerpt that hold a subset of a bug state for efficient sorting and retrieval --- graphql/resolvers/bug.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'graphql/resolvers/bug.go') diff --git a/graphql/resolvers/bug.go b/graphql/resolvers/bug.go index b3385243..858feb16 100644 --- a/graphql/resolvers/bug.go +++ b/graphql/resolvers/bug.go @@ -2,6 +2,7 @@ package resolvers import ( "context" + "time" "github.com/MichaelMure/git-bug/bug" "github.com/MichaelMure/git-bug/graphql/connections" @@ -67,3 +68,7 @@ func (bugResolver) Operations(ctx context.Context, obj *bug.Snapshot, after *str return connections.BugOperationCon(obj.Operations, edger, conMaker, input) } + +func (bugResolver) LastEdit(ctx context.Context, obj *bug.Snapshot) (time.Time, error) { + return obj.LastEditTime(), nil +} -- cgit