Update with Foreign key
Hi, I have to update a table based on the foreign key. I am using nhost as the data provider.
id primary key while sending requests. If you want, you can customize the data provider by copy-pasting the sourcecode to your project. But instead of this, how about using useUpdate or useUpdateMany (depends on your use case) and supplying the id or ids to change from a useList hook with filters?useList and filter by your foreign key. Get the primary key and run the useUpdate with your values and id useList https://refine.dev/docs/api-reference/core/hooks/data/useList/#filteringid in useUpdate https://refine.dev/docs/api-reference/core/hooks/data/useUpdate/#id-useUpdateuseUpdateuseUpdateuseUpdateManyidsuseListuseListuseListfilters