From b2f8572c4493205535558fb9320689aaf4774dc1 Mon Sep 17 00:00:00 2001 From: Michael Muré Date: Sun, 16 Jun 2019 21:29:49 +0200 Subject: graphql: change mutations to respect the Relay specification https://facebook.github.io/relay/graphql/mutations.htm This specification also allow to expose a mutationId for fire and forget, as well as the created operation. --- cache/multi_repo_cache.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cache/multi_repo_cache.go') diff --git a/cache/multi_repo_cache.go b/cache/multi_repo_cache.go index da1c26bd..fa5a2041 100644 --- a/cache/multi_repo_cache.go +++ b/cache/multi_repo_cache.go @@ -41,7 +41,7 @@ func (c *MultiRepoCache) RegisterDefaultRepository(repo repository.ClockedRepo) return nil } -// ResolveRepo retrieve a repository by name +// DefaultRepo retrieve the default repository func (c *MultiRepoCache) DefaultRepo() (*RepoCache, error) { if len(c.repos) != 1 { return nil, fmt.Errorf("repository is not unique") @@ -54,7 +54,7 @@ func (c *MultiRepoCache) DefaultRepo() (*RepoCache, error) { panic("unreachable") } -// DefaultRepo retrieve the default repository +// ResolveRepo retrieve a repository by name func (c *MultiRepoCache) ResolveRepo(ref string) (*RepoCache, error) { r, ok := c.repos[ref] if !ok { -- cgit