Abstract Optional body?: unknownOptional fetch?: ((input: RequestInfo | URL, init?: RequestInit) => Promise<Response>)Optional init: RequestInitOptional isOptional schema?: stringOptional shouldOptional signal?: AbortSignalProtected Optional bodyProtected fetchOptional init: RequestInitProtected headersProtected isProtected methodProtected Optional schemaProtected shouldProtected Optional signalProtected urlThe new type to cast the response data to
Optional type configuration (defaults to { merge: true })
Override the type of the returned data.
Use overrideTypes<yourType, { merge: false }>() method at the end of your call chain instead
The new result type to override with
Set an HTTP header for the request.
Optional onfulfilled: null | ((value: ThrowOnError extends true ? PostgrestResponseSuccess<Result> : PostgrestSingleResponse<Result>) => TResult1 | PromiseLike<TResult1>)Optional onrejected: null | ((reason: any) => TResult2 | PromiseLike<TResult2>)If there's an error with the query, throwOnError will reject the promise by throwing the error instead of returning it as part of a successful response.
Generated using TypeDoc
Override the type of the returned
datafield in the response.Example
Returns
A PostgrestBuilder instance with the new type