aboutsummaryrefslogtreecommitdiffstats
path: root/graphql/resolvers
diff options
context:
space:
mode:
Diffstat (limited to 'graphql/resolvers')
-rw-r--r--graphql/resolvers/repo.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/graphql/resolvers/repo.go b/graphql/resolvers/repo.go
index fc82faf4..75c1307d 100644
--- a/graphql/resolvers/repo.go
+++ b/graphql/resolvers/repo.go
@@ -4,6 +4,7 @@ import (
"context"
"github.com/MichaelMure/git-bug/bug"
+ "github.com/MichaelMure/git-bug/cache"
"github.com/MichaelMure/git-bug/graphql/connections"
"github.com/MichaelMure/git-bug/graphql/models"
)
@@ -19,7 +20,7 @@ func (repoResolver) AllBugs(ctx context.Context, obj *models.Repository, after *
}
// Simply pass a []string with the ids to the pagination algorithm
- source := obj.Repo.AllBugOrderById()
+ source := obj.Repo.AllBugsId(cache.OrderByCreation, cache.OrderAscending)
// The edger create a custom edge holding just the id
edger := func(id string, offset int) connections.Edge {