diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-11-19 08:27:35 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-11-19 08:27:35 +0000 |
commit | 7e9c479f7de77702622631cff2628a9c8dcbc627 (patch) | |
tree | c8f718a08e110ad7e1894510980d2155a6549197 /app/graphql/queries/repository/files.query.graphql | |
parent | e852b0ae16db4052c1c567d9efa4facc81146e88 (diff) | |
download | gitlab-ce-7e9c479f7de77702622631cff2628a9c8dcbc627.tar.gz |
Add latest changes from gitlab-org/gitlab@13-6-stable-eev13.6.0-rc42
Diffstat (limited to 'app/graphql/queries/repository/files.query.graphql')
-rw-r--r-- | app/graphql/queries/repository/files.query.graphql | 76 |
1 files changed, 76 insertions, 0 deletions
diff --git a/app/graphql/queries/repository/files.query.graphql b/app/graphql/queries/repository/files.query.graphql new file mode 100644 index 00000000000..232d98a932c --- /dev/null +++ b/app/graphql/queries/repository/files.query.graphql @@ -0,0 +1,76 @@ +fragment PageInfo on PageInfo { + __typename + hasNextPage + hasPreviousPage + startCursor + endCursor +} + +fragment TreeEntry on Entry { + __typename + id + sha + name + flatPath + type +} + +query getFiles( + $projectPath: ID! + $path: String + $ref: String! + $pageSize: Int! + $nextPageCursor: String +) { + project(fullPath: $projectPath) { + __typename + repository { + __typename + tree(path: $path, ref: $ref) { + __typename + trees(first: $pageSize, after: $nextPageCursor) { + __typename + edges { + __typename + node { + ...TreeEntry + webPath + } + } + pageInfo { + ...PageInfo + } + } + submodules(first: $pageSize, after: $nextPageCursor) { + __typename + edges { + __typename + node { + ...TreeEntry + webUrl + treeUrl + } + } + pageInfo { + ...PageInfo + } + } + blobs(first: $pageSize, after: $nextPageCursor) { + __typename + edges { + __typename + node { + ...TreeEntry + mode + webPath + lfsOid + } + } + pageInfo { + ...PageInfo + } + } + } + } + } +} |