folders
Topics: Files
Folders in the caller's tenant, filtered and sorted, as a connection. Requires folder:list permission.
Returns
FolderConnection!Arguments
Page size, 0 to 100 (default 25). A value outside that range returns a PAGE_SIZE_NEGATIVE or PAGE_SIZE_EXCEEDED error.
Cursor from a previous page's edge (a folder TypeID) to continue after. The listing resumes at the folder following that cursor, under the same filter and sort. A cursor that matches no folder in the result set is ignored and the first page is returned.
Narrow the result set by name and/or binding kind. Omit to list every folder in the tenant.
Sort keys; only the first is applied. Defaults to creation time, newest first, when omitted.
Examples
Browse Prepress Folders
query BrowsePrepressFolders($first: Int!) {
folders(first: $first) {
edges { node { id name kind rootPath isDefault } }
pageInfo { hasNextPage endCursor }
}
}Variables
{
"first": 20
}Exact field SDL
"""
Folders in the caller's tenant, filtered and sorted, as a connection. Requires folder:list permission.
"""
folders(
"""
Page size, 0 to 100 (default 25). A value outside that range returns a PAGE_SIZE_NEGATIVE or PAGE_SIZE_EXCEEDED error.
"""
first: Int
"""
Cursor from a previous page's edge (a folder TypeID) to continue after. The listing resumes at the folder following that cursor, under the same `filter` and `sort`. A cursor that matches no folder in the result set is ignored and the first page is returned.
"""
after: String
"""
Narrow the result set by name and/or binding kind. Omit to list every folder in the tenant.
"""
filter: FolderFilterInput
"""
Sort keys; only the first is applied. Defaults to creation time, newest first, when omitted.
"""
sort: [FolderSortInput!]
): FolderConnection! @topic(names: ["files"]) @topic_example(names: ["prepress.browse-folders"])Declared on Query. Access is checked by the platform for each operation.