Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
edf6a259
Commit
edf6a259
authored
Aug 30, 2021
by
jerasmus
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add paginated tree graphQL query
Added a graphQL query for paginated tree Changelog: added
parent
18f68e1c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
54 additions
and
0 deletions
+54
-0
app/graphql/queries/repository/paginated_tree.query.graphql
app/graphql/queries/repository/paginated_tree.query.graphql
+54
-0
No files found.
app/graphql/queries/repository/paginated_tree.query.graphql
0 → 100644
View file @
edf6a259
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
}
}
}
}
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment