debian-mirror-gitlab/app/graphql/queries/repository/files.query.graphql

78 lines
1.3 KiB
GraphQL
Raw Normal View History

2021-01-29 00:20:46 +05:30
fragment PageInfo on PageInfo {
__typename
hasNextPage
hasPreviousPage
startCursor
endCursor
}
2019-10-12 21:52:04 +05:30
2019-09-04 21:01:54 +05:30
fragment TreeEntry on Entry {
2021-01-29 00:20:46 +05:30
__typename
2019-09-04 21:01:54 +05:30
id
2019-12-26 22:10:19 +05:30
sha
2019-09-30 21:07:59 +05:30
name
2019-09-04 21:01:54 +05:30
flatPath
type
}
query getFiles(
$projectPath: ID!
$path: String
$ref: String!
$pageSize: Int!
$nextPageCursor: String
) {
project(fullPath: $projectPath) {
2021-11-11 11:23:49 +05:30
id
2021-01-29 00:20:46 +05:30
__typename
2019-09-04 21:01:54 +05:30
repository {
2021-01-29 00:20:46 +05:30
__typename
2019-09-04 21:01:54 +05:30
tree(path: $path, ref: $ref) {
2021-01-29 00:20:46 +05:30
__typename
2019-09-04 21:01:54 +05:30
trees(first: $pageSize, after: $nextPageCursor) {
2021-01-29 00:20:46 +05:30
__typename
2019-09-04 21:01:54 +05:30
edges {
2021-01-29 00:20:46 +05:30
__typename
2019-09-04 21:01:54 +05:30
node {
...TreeEntry
2020-10-24 23:57:45 +05:30
webPath
2019-09-04 21:01:54 +05:30
}
}
pageInfo {
...PageInfo
}
}
submodules(first: $pageSize, after: $nextPageCursor) {
2021-01-29 00:20:46 +05:30
__typename
2019-09-04 21:01:54 +05:30
edges {
2021-01-29 00:20:46 +05:30
__typename
2019-09-04 21:01:54 +05:30
node {
...TreeEntry
2019-09-30 21:07:59 +05:30
webUrl
treeUrl
2019-09-04 21:01:54 +05:30
}
}
pageInfo {
...PageInfo
}
}
blobs(first: $pageSize, after: $nextPageCursor) {
2021-01-29 00:20:46 +05:30
__typename
2019-09-04 21:01:54 +05:30
edges {
2021-01-29 00:20:46 +05:30
__typename
2019-09-04 21:01:54 +05:30
node {
...TreeEntry
2020-07-28 23:09:34 +05:30
mode
2020-10-24 23:57:45 +05:30
webPath
2020-07-28 23:09:34 +05:30
lfsOid
2019-09-04 21:01:54 +05:30
}
}
pageInfo {
...PageInfo
}
}
}
}
}
}