diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-09-02 18:11:35 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-09-02 18:11:35 +0300 |
commit | bea3a92105825c1fcef145727ba87bee3e31daee (patch) | |
tree | dde3c9fa4425865a8d3b49f3aaf73c7d04e6c592 /app/graphql/queries | |
parent | bd1df17345c7fe8cbc19a9716b931acdbb7d0ce5 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/graphql/queries')
-rw-r--r-- | app/graphql/queries/repository/paginated_tree.query.graphql | 54 |
1 files changed, 54 insertions, 0 deletions
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 + } + } + } + } + } + } +} |