From 1effc91556c4567673c68329722bd415ec648a12 Mon Sep 17 00:00:00 2001 From: Michael Muré Date: Wed, 5 Feb 2020 01:06:53 +0100 Subject: graphql: merge defaultRepository and repository for simplified webUI code --- graphql/schema/root.graphql | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'graphql/schema/root.graphql') diff --git a/graphql/schema/root.graphql b/graphql/schema/root.graphql index 2a12cc37..317cf56a 100644 --- a/graphql/schema/root.graphql +++ b/graphql/schema/root.graphql @@ -1,10 +1,6 @@ type Query { - """The default unnamend repository.""" - defaultRepository: Repository - """Access a repository by reference/name.""" - repository(ref: String!): Repository - - #TODO: connection for all repositories + """Access a repository by reference/name. If no ref is given, the default repository is returned if any.""" + repository(ref: String): Repository } type Mutation { -- cgit From 0c17d248ee1536aa02ab5beb0c935607421a6b8d Mon Sep 17 00:00:00 2001 From: Michael Muré Date: Wed, 12 Feb 2020 22:02:11 +0100 Subject: graphql: server side take responsability to commit --- graphql/schema/root.graphql | 4 ---- 1 file changed, 4 deletions(-) (limited to 'graphql/schema/root.graphql') diff --git a/graphql/schema/root.graphql b/graphql/schema/root.graphql index 317cf56a..94a0b530 100644 --- a/graphql/schema/root.graphql +++ b/graphql/schema/root.graphql @@ -16,8 +16,4 @@ type Mutation { closeBug(input: CloseBugInput!): CloseBugPayload! """Change a bug's title""" setTitle(input: SetTitleInput!): SetTitlePayload! - """Commit write the pending operations into storage. This mutation fail if nothing is pending""" - commit(input: CommitInput!): CommitPayload! - """Commit write the pending operations into storage. This mutation succed if nothing is pending""" - commitAsNeeded(input: CommitAsNeededInput!): CommitAsNeededPayload! } -- cgit