aboutsummaryrefslogtreecommitdiffstats
path: root/graphql/resolvers
diff options
context:
space:
mode:
Diffstat (limited to 'graphql/resolvers')
-rw-r--r--graphql/resolvers/mutation.go2
-rw-r--r--graphql/resolvers/query.go2
-rw-r--r--graphql/resolvers/root.go8
3 files changed, 6 insertions, 6 deletions
diff --git a/graphql/resolvers/mutation.go b/graphql/resolvers/mutation.go
index 674c1775..7cc98aac 100644
--- a/graphql/resolvers/mutation.go
+++ b/graphql/resolvers/mutation.go
@@ -9,7 +9,7 @@ import (
)
type mutationResolver struct {
- cache *cache.RootCache
+ cache *cache.MultiRepoCache
}
func (r mutationResolver) getRepo(repoRef *string) (*cache.RepoCache, error) {
diff --git a/graphql/resolvers/query.go b/graphql/resolvers/query.go
index 0e7f3a6f..b5763b72 100644
--- a/graphql/resolvers/query.go
+++ b/graphql/resolvers/query.go
@@ -8,7 +8,7 @@ import (
)
type rootQueryResolver struct {
- cache *cache.RootCache
+ cache *cache.MultiRepoCache
}
func (r rootQueryResolver) DefaultRepository(ctx context.Context) (*models.Repository, error) {
diff --git a/graphql/resolvers/root.go b/graphql/resolvers/root.go
index 767e82d2..1003f7f1 100644
--- a/graphql/resolvers/root.go
+++ b/graphql/resolvers/root.go
@@ -6,24 +6,24 @@ import (
)
type RootResolver struct {
- cache.RootCache
+ cache.MultiRepoCache
}
func NewRootResolver() *RootResolver {
return &RootResolver{
- RootCache: cache.NewCache(),
+ MultiRepoCache: cache.NewMultiRepoCache(),
}
}
func (r RootResolver) Query() graph.QueryResolver {
return &rootQueryResolver{
- cache: &r.RootCache,
+ cache: &r.MultiRepoCache,
}
}
func (r RootResolver) Mutation() graph.MutationResolver {
return &mutationResolver{
- cache: &r.RootCache,
+ cache: &r.MultiRepoCache,
}
}