Hey everyone,
I’m having an issue with the Rest API generated by Noco on a table that makes use of a composite primary key as seen in the below image:
My request ultimately boils down to:
curl -X 'PATCH' \
'https://.../api/v2/tables/m4echxrt1m53mxi/records' \
-H 'accept: application/json' \
-H 'xc-auth: ...' \
-H 'Content-Type: application/json' \
-d '{
"order_id": 87970,
"customer_id": 28572,
"order_status_id": 19
}'
And I want to update the field “order_status_id” from the current value of 5, to the 19 shown in the request here. As far as I’m aware, we’re running MySQL with Noco running in a Docker container.
The response object shows this message:
Undefined binding(s) detected when compiling SELECT. Undefined column(s): [customer_id, order_status_id] query: <... VERY long SQL query here that has a where clause of all fields in the composite key being set to '?'>
Any help would be appreciated as I’m most likely just doing something stupid in this request.