List user folders
GraphQL endpoint: /user
Lists every document folder of the calling user. Each record references its parent folder via parentId, so the full folder tree can be reconstructed.
Query
query {
folders {
records { id name parentId }
}
}
Variables
{}Response
{
"data": {
"folders": {
"records": [
{
"id": "00000000-0000-4000-8000-000000000001",
"name": "Top",
"parentId": null
},
{
"id": "00000000-0000-4000-8000-000000000002",
"name": "Child",
"parentId": "00000000-0000-4000-8000-000000000001"
},
{
"id": "00000000-0000-4000-8000-000000000003",
"name": "Grandchild",
"parentId": "00000000-0000-4000-8000-000000000002"
}
]
}
}
}Last updated