Skip to main content

core.crawlresource_1

Home > @medplum/core > crawlResource

crawlResource() function

Warning: This API is now obsolete.

  • Use crawlTypedValueAsync instead

Crawls the resource asynchronously.

Signature:

export declare function crawlResource(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>

void