Skip to content

[FEATURE]: Optional One-to-One Relation #1066

@413n

Description

@413n

Describe what you want

Currently it's possible to define only a One-to-One relation (https://orm.drizzle.team/docs/rqb#one-to-one) but in the types, the value returned will never be undefined or null.
In my use case I would like to define a One-to-One relation that could be optional.
Is there a solution? Is this even possible?

Metadata

Metadata

Assignees

Labels

done-in-rqb-v2Bugs that are patched or features that are implemented in RQB v2enhancementNew feature or requestrqbrelational queries

Type

No type

Projects

Status

Todo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions