Skip to main content

libraryResourceAncestors

Returns the chain of ancestor folders for a library resource, ordered from the topmost ancestor down to the immediate parent. Excludes the resource itself. Empty array when the resource has no parent folder.

libraryResourceAncestors(
resourceId: String!
): [LibraryResourceAncestor!]!

Arguments

libraryResourceAncestors.resourceId ● String! non-null scalar

The library resource whose ancestor folders to return.

Type

LibraryResourceAncestor object

An ancestor folder in a library resource's parent chain.