Skip to main content

@postgres/find_one

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 find.

preload​

preload​Preload[]

Preload lists the relationship to expand/load.

where​

where​Where[]

Where list the parts of the where clause.

notFoundError​

notFoundError​string

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

type Preload​

field​

field *​string

preload​

preload​Preload[]

type Where​

query​

query *​string

value​

value *​string (Value expression)