I have a collection with the following field:
{ name: "locations", type: "relationship", relationTo: "myLocations", hasMany: true, },
The myLocations collection has the following ID field:
{ name: "id", type: "number", required: true, },
The genereated payload interface contains this:
locations?: (number | MyLocation)[] | null;
Yet the local API returns:
{ "locations": [ "100" ], }
As you can see, the locationID is returned as string instead of number. In the admin panel that also leads to a problem, since it's unable to follow the connecting and fetch the useAsName field:
#hasMany relationship returns IDs as strings instead of numbers
2 messages · Page 1 of 1 (latest)