Interface: AdapterResponseI<RawData, Data>
Adapter response data wrapper object.
Type parameters
• RawData
Adapter's original response its implementation (e.g. a Response object for HTTP adapter using fetch).
• Data = unknown
Content of the adapter's original response, containing records or relations data.
Methods
read()
read():
Promise
<Data
>
Read the original response data. This will be used to deserialize instances from data. This method may not support to be called multiple times, prefer calling it only once and reusing returned value.
Returns
Promise
<Data
>
Source
Properties
raw
readonly
raw:RawData
The raw original data (e.g. a Response object for HttpAdapter).