aboutsummaryrefslogtreecommitdiffstats
path: root/graphql/schema/root.graphql
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2020-02-05 01:06:53 +0100
committerQuentin Gliech <quentingliech@gmail.com>2020-02-11 21:23:28 +0100
commit1effc91556c4567673c68329722bd415ec648a12 (patch)
tree65dc82bce8fac6487a66094a3d3d772a78dd6d4b /graphql/schema/root.graphql
parent76d40061765a8d0d54fe487587187e8a25240a78 (diff)
downloadgit-bug-1effc91556c4567673c68329722bd415ec648a12.tar.gz
graphql: merge defaultRepository and repository for simplified webUI code
Diffstat (limited to 'graphql/schema/root.graphql')
-rw-r--r--graphql/schema/root.graphql8
1 files changed, 2 insertions, 6 deletions
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 {