Make Find One with autojoin
- Dominant language
- TypeScript
- Stars
- 4
- Forks
- 11
- PR merge metrics
- No merged PRs in 30d
Description
https://orkhan.gitbook.io/typeorm/docs/find-options
```ts
export async function getOneAndJoin(
store: Store,
entityConstructor: EntityConstructor,
id: string,
relations: FindOptionsRelations
): Promise {
const where: FindOptionsWhere = { id } as FindOptionsWhere
return store.findOne(entityConstructor, { relations, where })
}
```
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the linked Find Options documentation and inspect Store.findOne alongside the getOneAndJoin example shown in the issue. Trace how relations and where are passed into Find One, then verify that the requested autojoin behavior works through the repository's existing checks.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- backend, database
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100