diff options
Diffstat (limited to 'graphql/resolvers')
-rw-r--r-- | graphql/resolvers/repo.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/graphql/resolvers/repo.go b/graphql/resolvers/repo.go index 75c1307d..7922256f 100644 --- a/graphql/resolvers/repo.go +++ b/graphql/resolvers/repo.go @@ -20,7 +20,10 @@ func (repoResolver) AllBugs(ctx context.Context, obj *models.Repository, after * } // Simply pass a []string with the ids to the pagination algorithm - source := obj.Repo.AllBugsId(cache.OrderByCreation, cache.OrderAscending) + source := obj.Repo.QueryBugs(&cache.Query{ + OrderBy: cache.OrderByCreation, + OrderDirection: cache.OrderAscending, + }) // The edger create a custom edge holding just the id edger := func(id string, offset int) connections.Edge { |