Methods
-
start( data )
-
Description
Called at route startParameters
Name Type Description data
object Name Type Description req
object Request - See expressjs definition res
object Response - See expressjs definition transaction
object Database transaction. Use this transaction in your hooks. Commit and rollback are handled through res.success() / res.error() Details
-
beforeCreateQuery( data )
-
Description
Called before entity creation in databaseParameters
Name Type Description data
object Name Type Description req
object Request - See expressjs definition res
object Response - See expressjs definition transaction
object Database transaction. Use this transaction in your hooks. Commit and rollback are handled through res.success() / res.error() createObject
object Parsed form values used to create row in database createAssociations
Array.<CoreEntity.associationObject> Associations array files
Array.<CoreEntity.fileObject> Array of files parsed from body Details
-
beforeRedirect( data )
-
Description
Called before redirection to data.redirectParameters
Name Type Description data
object Name Type Description req
object Request - See expressjs definition res
object Response - See expressjs definition transaction
object Database transaction. Use this transaction in your hooks. Commit and rollback are handled through res.success() / res.error() createObject
object Parsed form values used to create row in database createAssociations
Array.<CoreEntity.associationObject> Associations array files
Array.<CoreEntity.fileObject> Array of files parsed from body Details