## MedplumClient.readResourceGraph() method [​](/content/docs/sdk/core.medplumclient.readresourcegraph#medplumclientreadresourcegraph-method "Direct link to MedplumClient.readResourceGraph(/index.html) 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:**

```typescript
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](/content/docs/sdk/core.medplumrequestoptions) | _(Optional)_ Optional fetch options. |

**Returns:**

[ReadablePromise](/content/docs/sdk/core.readablepromise) <Bundle>

- [MedplumClient.readResourceGraph() method](/content/docs/sdk/core.medplumclient.readresourcegraph#medplumclientreadresourcegraph-method/index.html)
- [Parameters](/content/docs/sdk/core.medplumclient.readresourcegraph#parameters/index.html)
