Fetching Parent Items
Hierarchy is an integral part of Crystallize. Most items have a parent item. This section details how to fetch parent and child items.
In order to perform these operations, ensure that you have the proper authentication (if necessary) and user permissions.
Parent Items
Parent items can be fetched using the parent field. In the example below, we’re fetching the parent name and path of a folder.
Fetching snippet...
Children
You can then fetch all the children contained within a parent item by using the children field. Additionally, you can apply all the item query fields on the parent item.
Fetching snippet...