Methods
-
start( data )
-
Description
Called at route startParameters
Name Type Description dataobject Name Type Attributes Description reqobject Request - See expressjs definition resobject Response - See expressjs definition transactionobject <optional> Database transaction. undefined by default, provide your own when necessary speWhereobject <optional> Specific `where` case added to datatable's request speIncludeArray.<string> <optional> Specific elements to `include` to datatable's request. An array of field path compatible with `helpers.model_builder.getIncludeFromFields()` is expected tableInfoobject Table information from client Details
-
beforeDatatableQuery( data )
-
Description
Called before datatable query build and executionParameters
Name Type Description dataobject Name Type Attributes Description reqobject Request - See expressjs definition resobject Response - See expressjs definition transactionobject <optional> Database transaction. undefined by default, provide your own when necessary speWhereobject <optional> Specific `where` case added to datatable's request speIncludeArray.<string> <optional> Specific elements to `include` to datatable's request. An array of field path compatible with `helpers.model_builder.getIncludeFromFields()` is expected tableInfoobject Table information from client Details
-
afterDatatableQuery( data )
-
Description
Called after datatable query execution, before post processing of resultsParameters
Name Type Description dataobject Name Type Attributes Description reqobject Request - See expressjs definition resobject Response - See expressjs definition transactionobject <optional> Database transaction. undefined by default, provide your own when necessary speWhereobject <optional> Specific `where` case added to datatable's request speIncludeArray.<string> <optional> Specific elements to `include` to datatable's request. An array of field path compatible with `helpers.model_builder.getIncludeFromFields()` is expected tableInfoobject Table information from client rawDatastring Result of the datatable query as raw data Details
-
beforeResponse( data )
-
Description
Called before json responseParameters
Name Type Description dataobject Name Type Attributes Description reqobject Request - See expressjs definition resobject Response - See expressjs definition transactionobject <optional> Database transaction. undefined by default, provide your own when necessary speWhereobject <optional> Specific `where` case added to datatable's request speIncludeArray.<string> <optional> Specific elements to `include` to datatable's request. An array of field path compatible with `helpers.model_builder.getIncludeFromFields()` is expected tableInfoobject Table information from client rawDatastring Result of the datatable query as raw data preparedDatastring Post processed data of datatable query results. This is the data sent as response Details