Skip to main content

core.crawlresourceasync

Home > @medplum/core > crawlResourceAsync

crawlResourceAsync() function

Warning: This API is now obsolete.

  • Use crawlTypedValueAsync instead

Crawls the resource asynchronously.

Signature:

export declare function crawlResourceAsync(resource: Resource, visitor: AsyncCrawlerVisitor, options: CrawlerOptions): Promise<void>;

Parameters

Parameter

Type

Description

resource

Resource

The resource to crawl.

visitor

AsyncCrawlerVisitor

The visitor functions to apply while crawling.

options

CrawlerOptions

Options for how to crawl the resource.

Returns:

Promise<void>

Promise