getNodesAndCount Method

Deprecated  Use PresentationManager.getNodes and PresentationManager.getNodesCount separately

Retrieves nodes and node count

getNodesAndCount(requestContext: ClientRequestContext, requestOptions: Paged<HierarchyRequestOptions<IModelDb, RulesetVariable>>, parentKey?: NodeKey): Promise<{ count: number, nodes: Node[] }>

Parameter Type Description
requestContext ClientRequestContext Client request context
requestOptions Paged<HierarchyRequestOptions<IModelDb, RulesetVariable>> Options for the request
parentKey NodeKey Key of the parentNode

Returns - Promise<{ count: number, nodes: Node[] }>

A promise object that returns either a node response containing nodes and node count on success or an error string on error

Defined in

Last Updated: 12 June, 2024