ash json patch with composite primary key
I have a resource with 2 primary keys
And this update action
And finally this json API route
But how do I use it now? If I make this request
Then the wrong data is set as exposed. This is the query SQL query that is generated
In other words, the ID for the data is ignored and idk how to set it properly.
I also have this policy for what it's worth
And this update action
And finally this json API route
patch :updateBut how do I use it now? If I make this request
Then the wrong data is set as exposed. This is the query SQL query that is generated
In other words, the ID for the data is ignored and idk how to set it properly.
I also have this policy for what it's worth
Solution
a new guide on the topic: https://github.com/ash-project/ash_json_api/blob/main/documentation/topics/composite-primary-keys.md
GitHub
The JSON:API extension for the Ash Framework. Contribute to ash-project/ash_json_api development by creating an account on GitHub.
