debian-mirror-gitlab/app/assets/javascripts/repository/queries/getFiles.query.graphql
2019-10-12 21:52:04 +05:30

58 lines
1.1 KiB
GraphQL

#import "~/graphql_shared/fragments/pageInfo.fragment.graphql"
fragment TreeEntry on Entry {
id
name
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
webUrl
treeUrl
}
}
pageInfo {
...PageInfo
}
}
blobs(first: $pageSize, after: $nextPageCursor) {
edges {
node {
...TreeEntry
webUrl
lfsOid
}
}
pageInfo {
...PageInfo
}
}
}
}
}
}