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.

namespace

namespace *string

Namespace is the type namespace to load.

type

type *string

Type is the type name to load.

preload

preloadPreload[]

Preload lists the relationship to expand/load.

where

whereWhere[]

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)