core.medplumclient.readresourcegraph | Medplum

MedplumClient.readResourceGraph() method

Executes the $graph operation on this resource to fetch a Bundle of resources linked to the target resource according to a graph definition

Signature:

readResourceGraph(resourceType: ResourceType, id: string, graphName: string, options?: MedplumRequestOptions): ReadablePromise<Bundle>;

Parameters [​](/content/docs/sdk/core.medplumclient.readresourcegraph#parameters "Direct link to Parameters"/index.html)

Parameter Type Description
resourceType ResourceType The FHIR resource type.
id string The resource ID.
graphName string name parameter of the GraphDefinition
options MedplumRequestOptions (Optional) Optional fetch options.

Returns:

ReadablePromise