Skip to main content

@sql/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

preloadPreload[]

Preload lists the relationship to expand/load.

where

whereWhere[]

Where list the parts of the where clause.

notFoundError

notFoundErrorstring

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

type Preload

field

field *string

preload

preloadPreload[]

type Where

query

query *string

value

value *string (Value expression)