Skip to main content

@postgres/load

Description​

DatabaseSource code

TODO

Options​

resource​

resource *​ResourceRef

Resource is the name of the connection resource to use.

entity​

entity *​Entity

The entity type to load.

key​

key *​string (Value expression)

ID is the entity identifier expression.

preload​

preload​Preload[]

Preload lists the relationship to expand/load.

notFoundError​

notFoundError *​string

NotFoundError is the error to return if the key is not found.

type Preload​

field​

field *​string

preload​

preload​Preload[]