getNodesAndCount Method

Retrieves nodes and node count

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

Parameter Type Description
requestContext ClientRequestContext Client request context
requestOptions Paged<HierarchyRequestOptions<IModelDb>> 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: 13 June, 2024