diff options
Diffstat (limited to 'app/graphql/queries/repository')
4 files changed, 57 insertions, 0 deletions
diff --git a/app/graphql/queries/repository/files.query.graphql b/app/graphql/queries/repository/files.query.graphql index 232d98a932c..a83880ce696 100644 --- a/app/graphql/queries/repository/files.query.graphql +++ b/app/graphql/queries/repository/files.query.graphql @@ -23,6 +23,7 @@ query getFiles( $nextPageCursor: String ) { project(fullPath: $projectPath) { + id __typename repository { __typename diff --git a/app/graphql/queries/repository/paginated_tree.query.graphql b/app/graphql/queries/repository/paginated_tree.query.graphql new file mode 100644 index 00000000000..e82bc6d0734 --- /dev/null +++ b/app/graphql/queries/repository/paginated_tree.query.graphql @@ -0,0 +1,54 @@ +fragment TreeEntry on Entry { + __typename + id + sha + name + flatPath + type +} + +query getPaginatedTree($projectPath: ID!, $path: String, $ref: String!, $nextPageCursor: String) { + project(fullPath: $projectPath) { + id + __typename + repository { + __typename + paginatedTree(path: $path, ref: $ref, after: $nextPageCursor) { + __typename + pageInfo { + __typename + endCursor + startCursor + hasNextPage + } + nodes { + __typename + trees { + __typename + nodes { + ...TreeEntry + webPath + } + } + submodules { + __typename + nodes { + ...TreeEntry + webUrl + treeUrl + } + } + blobs { + __typename + nodes { + ...TreeEntry + mode + webPath + lfsOid + } + } + } + } + } + } +} diff --git a/app/graphql/queries/repository/path_last_commit.query.graphql b/app/graphql/queries/repository/path_last_commit.query.graphql index d845f7c6224..b5c5f653429 100644 --- a/app/graphql/queries/repository/path_last_commit.query.graphql +++ b/app/graphql/queries/repository/path_last_commit.query.graphql @@ -1,5 +1,6 @@ query pathLastCommit($projectPath: ID!, $path: String, $ref: String!) { project(fullPath: $projectPath) { + id __typename repository { __typename diff --git a/app/graphql/queries/repository/permissions.query.graphql b/app/graphql/queries/repository/permissions.query.graphql index c0262a882cd..6d2ae362e31 100644 --- a/app/graphql/queries/repository/permissions.query.graphql +++ b/app/graphql/queries/repository/permissions.query.graphql @@ -1,5 +1,6 @@ query getPermissions($projectPath: ID!) { project(fullPath: $projectPath) { + id __typename userPermissions { __typename |