Skip to main content

AfterDataSourceResponseFunction()

AfterDataSourceResponseFunction: (params) => Promise<object>

Modify response to change how data is returned after fetching from database. Return ok: false and error: string to stop execution and show error message to user. Return ok: true to continue execution.

Parameters

ParameterType
paramsobject
params.adminUserAdminUser
params.adminforthIAdminForth
params.extraobject
params.extra.bodyany
params.extra.cookiesobject[]
params.extra.headersRecord<string, string>
params.extra.queryRecord<string, string>
params.resourceAdminForthResource
params.responseany

Returns

Promise<object>

error?

optional error: string

ok

ok: boolean