60 lines
1.1 KiB
GraphQL
60 lines
1.1 KiB
GraphQL
#import "~/graphql_shared/fragments/pageInfo.fragment.graphql"
|
|
|
|
fragment TreeEntry on Entry {
|
|
id
|
|
sha
|
|
name
|
|
flatPath
|
|
type
|
|
}
|
|
|
|
query Files(
|
|
$projectPath: ID!
|
|
$path: String
|
|
$ref: String!
|
|
$pageSize: Int!
|
|
$nextPageCursor: String
|
|
$vueLfsEnabled: Boolean = false
|
|
) {
|
|
project(fullPath: $projectPath) {
|
|
repository {
|
|
tree(path: $path, ref: $ref) {
|
|
trees(first: $pageSize, after: $nextPageCursor) {
|
|
edges {
|
|
node {
|
|
...TreeEntry
|
|
webPath
|
|
}
|
|
}
|
|
pageInfo {
|
|
...PageInfo
|
|
}
|
|
}
|
|
submodules(first: $pageSize, after: $nextPageCursor) {
|
|
edges {
|
|
node {
|
|
...TreeEntry
|
|
webUrl
|
|
treeUrl
|
|
}
|
|
}
|
|
pageInfo {
|
|
...PageInfo
|
|
}
|
|
}
|
|
blobs(first: $pageSize, after: $nextPageCursor) {
|
|
edges {
|
|
node {
|
|
...TreeEntry
|
|
webPath
|
|
lfsOid @include(if: $vueLfsEnabled)
|
|
}
|
|
}
|
|
pageInfo {
|
|
...PageInfo
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|