Expected behavior
I add the next piece of code
collection('feeRules', {
actions: [
{
name: "Create",
type: "global",
httpMethod: "POST",
fields: [
{
field: InputFields['Name'],
description: `Name of the fee rule`,
type: 'String',
isRequired: true,
},
],
hooks: {
load: ({fields, record}) => {
console.log('hello world')
}
}
And expect hello world in my console,
Actual behavior
I don’t see anything.
I also tried to assign some dynamic fields to “fields” property inside the load method
and return it but nothing worked out for me.
Failure Logs
Nothing, no errors.
Context
“dependencies”: {
“axios”: “^0.21.1”,
“body-parser”: “1.19.0”,
“chalk”: “~1.1.3”,
“cookie-parser”: “1.4.4”,
“cors”: “2.8.5”,
“debug”: “~4.0.1”,
“dotenv”: “~6.1.0”,
“express”: “~4.17.1”,
“express-jwt”: “6.0.0”,
“forest-express-sequelize”: “^7.0.0”,
“morgan”: “1.9.1”,
“pg”: “~8.2.2”,
“require-all”: “^3.0.0”,
“sequelize”: “~5.15.1”
}
- Database Dialect: postgresql
- Database Version: 13