Skip to main content

@sql/find

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.

pagination

paginationPagination

Pagination is the optional fields to wrap the results with.

offset

offsetstring (Value expression)

Offset is the query offset.

limit

limitstring (Value expression)

Limit is the query limit.

type Preload

field

field *string

preload

preloadPreload[]

type Where

query

query *string

value

value *string (Value expression)

type Pagination

pageIndex

pageIndexstring

pageCount

pageCountstring

offset

offsetstring

limit

limitstring

count

countstring

total

totalstring

items

items *string