Open christian-mibex opened 6 days ago
Hello @christian-mibex,
Sorry for the late response. We gonna have a look at this next week.
As suggested here we rename the fields and collections.
⚠️ This only rename collections not field.
We will start by reproducting your issue and then have a closer look on how it can be resolved.
Kind regards, Morgan
No worries, thanks for having a look!
What is then the proposed solution to migrate from express-sequelize (camelCase in code & forestadmin, but snake_case in database) to the nodejs agent without reworking the UI?
Best regards Christian
Expected behavior
We migrated a while ago from the express-sequalize agent to the nodejs agent. During that migration we wanted to keep the camelCase naming in the UI facing schema to avoid rework. As suggested here we rename the fields and collections.
We expect the same behavior for added relations:
Actual behavior
The schema generation fails with the following stack trace
When I debug the code, I see that the relation in the schema generation code has the snake_case name for
originKeyTarget
which then results in anundefinded
field and brakes the schema generation with the stack trace above.Context