debian-mirror-gitlab/app/assets/javascripts/repository/queries/getFiles.query.graphql

61 lines
1.1 KiB
GraphQL
Raw Normal View History

2019-10-12 21:52:04 +05:30
#import "~/graphql_shared/fragments/pageInfo.fragment.graphql"
2019-09-04 21:01:54 +05:30
fragment TreeEntry on Entry {
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) {
repository {
tree(path: $path, ref: $ref) {
trees(first: $pageSize, after: $nextPageCursor) {
edges {
node {
...TreeEntry
webUrl
}
}
pageInfo {
...PageInfo
}
}
submodules(first: $pageSize, after: $nextPageCursor) {
edges {
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) {
edges {
node {
...TreeEntry
2020-07-28 23:09:34 +05:30
mode
2019-09-04 21:01:54 +05:30
webUrl
2020-07-28 23:09:34 +05:30
lfsOid
2019-09-04 21:01:54 +05:30
}
}
pageInfo {
...PageInfo
}
}
}
}
}
}