tridion-sites-extensions-api-docs

Home > @tridion-sites/models > BlueprintReadonlyGraph

BlueprintReadonlyGraph interface

Represents a blueprint graph of nodes with associated data.

Always has a single root node

Signature:

export interface BlueprintReadonlyGraph<TData>

Methods

Method Description
ancestorsByPriority(nodeId) Get node ancestors by priority We are going bottom-to-top and by parent priority. Node grandparents are processed in order of priority of node’s parents. This allows to handle complex use-cases with multiple parents on the same distance in different blueprint branches
getNode(id)  
getNodes()  
getRootNode()