RelationshipKeyOnly type
A reference to a related entity that contains only its key, such as
{ id: 'cat-123' }.
type RelationshipKeyOnly<T> = T extends unknown
? RequiredKeyFields<T, RelationshipKeyField<T>>
: never
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
A reference to a related entity that contains only its key, such as
{ id: 'cat-123' }.
type RelationshipKeyOnly<T> = T extends unknown
? RequiredKeyFields<T, RelationshipKeyField<T>>
: never