Hi.
We’re migrating from forest-express-sequelize
to @forestadmin/agent
.
Taking a look to the differences between the .forestadmin-schma.json
generated with the old and the new agent, we saw a difference we would like to have a doublecheck about, with your help.
Our setup:
experiece_departures
has manyprovider_notifications
provider notification
has a primary key fielduuid
(which is an uuid, of course) and a fkey fieldid_experience_departure
.experience_departure
has a primary key fieldid
(integer).
In the .forestadmin-schema.json
generated with the old agent, in the ExperienceDeparture
collection, we can see this field:
{
"field": "ProviderNotifications",
"type": ["Number"],
"defaultValue": null,
"enums": null,
"integration": null,
"isFilterable": true,
"isPrimaryKey": false,
"isReadOnly": false,
"isRequired": false,
"isSortable": true,
"isVirtual": false,
"reference": "ProviderNotification.uuid", <<<<<<<<<<
"inverseOf": null,
"relationship": "HasMany",
"validations": []
}
I the new file we can find this:
{
"defaultValue": null,
"enums": null,
"field": "ProviderNotifications",
"integration": null,
"inverseOf": null,
"isFilterable": false,
"isPrimaryKey": false,
"isReadOnly": false,
"isRequired": false,
"isSortable": true,
"isVirtual": false,
"reference": "ProviderNotification.id", <<<<<<<<<<
"relationship": "HasMany",
"type": ["Number"],
"validations": []
}
It looks like the ProviderNotification.uuid
reference have been renamed into ProviderNotification.id
.
But we don’t have any ProviderNotification.id
field there.
Since forest is woking correctly with the new agent, (as far as I can tell), we’re assuming this is a kind of convention you changed from old to new agent. May you please confirm this is the expected behaviour on your side? Or do you think that we’d better have some deeper check?
Thank you.
Matteo