Remote / foldkit-remote-domain

QueryConfig

interface · packages/remote-domain/src/adapter/query.ts:61

interface QueryConfig<D extends AnyListQuery, Q extends Domain.Query.Any> {
  readonly input: (input: InputOfQuery<D>) => Domain.Query.InputOf<Q>
  readonly id: (entry: EntryOf<Q>) => string
}

What DomainRemote.query takes besides the Remote query, the Api and the Domain Query's name.

Members

QueryConfig.input

property · packages/remote-domain/src/adapter/query.ts:63

readonly input: (input: InputOfQuery<D>) => Domain.Query.InputOf<Q>

The Domain Query's input, from the Remote query's.

QueryConfig.id

property · packages/remote-domain/src/adapter/query.ts:65

readonly id: (entry: EntryOf<Q>) => string

The id of the row an entry of the Domain page lists.