getNodes Method

Retrieves nodes

getNodes(requestContext: ClientRequestContext, requestOptions: Paged<HierarchyRequestOptions<IModelDb>>, parentKey?: NodeKey): Promise<Node[]>

Parameter Type Description
requestContext ClientRequestContext Client request context
requestOptions Paged<HierarchyRequestOptions<IModelDb>> options for the request
parentKey NodeKey Key of the parent node if requesting for child nodes.

Returns - A promise object that returns either an array of nodes on success or an error string on error.

Defined in

Last Updated: 08 January, 2020