Commit edf6a259 authored by jerasmus's avatar jerasmus

Add paginated tree graphQL query

Added a graphQL query for paginated tree

Changelog: added
parent 18f68e1c
fragment TreeEntry on Entry {
__typename
id
sha
name
flatPath
type
}
query getFiles($projectPath: ID!, $path: String, $ref: String!, $nextPageCursor: String) {
project(fullPath: $projectPath) {
id
__typename
repository {
__typename
paginatedTree(path: $path, ref: $ref, after: $nextPageCursor) {
__typename
pageInfo {
__typename
endCursor
startCursor
hasNextPage
}
nodes {
__typename
trees {
__typename
nodes {
...TreeEntry
webPath
}
}
submodules {
__typename
nodes {
...TreeEntry
webUrl
treeUrl
}
}
blobs {
__typename
nodes {
...TreeEntry
mode
webPath
lfsOid
}
}
}
}
}
}
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment