Skip to main content

Interface: AdapterI<RawData, Data>

Adapter interacting with the data source.

Extended by

Type parameters

RawData

Adapter's original response its implementation (e.g. a Response object for HTTP adapter using fetch).

Data = any

Content of the adapter's original response, containing records or relations data.

Methods

execute()

execute(context): Awaitable <AdapterResponseI<RawData, Data>>

Execute a given context to retrieve a raw data response. Context data will already be serialized using serializer if available.

Parameters

context

Returns

Awaitable <AdapterResponseI<RawData, Data>>

Source

packages/core/src/types.ts:97