jman
jman5mo ago

Is there any way to temporarily disable mutations?

My goal is to move into a read-only mode temporarily. I'm thinking anything could be fine as a short term solution. 1. Throw an explicit error when mutations try to be called 2. Procedure not found error 3. Stop support POST requests?
1 Reply
julius
julius5mo ago
firing mutations are done declaratively so you should probably just disable the interaction that fires the mutation then depending on your needs (is the read-only mode for permissions or just astethics?) you'll have to handle the permission on the backend too