hasura / ra-data-hasura

react-admin data provider for Hasura GraphQL Engine
MIT License
336 stars 70 forks source link

Question regarding how to customize mutation arguments #146

Open crispinkoech opened 1 year ago

crispinkoech commented 1 year ago

So there is documentation on how to customize queries to provide extra related fields; I was wondering, could you provide documentation on how one can get around customizing builds arguments for mutations on the data provider level?

Just to give more context, we're working on a many-to-many relationship table which doesn't have one (id) primary column; rather, it has a set of columns columnA and columnB which act as the composite key. What I'd like to achieve, is to override the mutation query at the data provider level to then set my own custom arguments as well as augment this on the query document sent out. Is this something possible?