---
jsApi: true
title: "[F] getParentResource"

---
```ts
getParentResource(program, resourceType): Model | undefined
```

## Parameters

| Parameter | Type |
| :------ | :------ |
| `program` | `Program` |
| `resourceType` | `Model` |

## Returns

`Model` \| `undefined`
