Unable to edit `Mutation Callbacks`. Anyone else?
# prisma-whats-new
m
Unable to edit
Mutation Callbacks
. Anyone else?
Weird, works now. Had to reload several times.
Now doesn’t work again.
Apparently, making changes to the
Model
can cause this error. Reloading page doesn’t seem to fix it, but navigating away and back to
Mutation Callbacks
seems to fix it.
s
Could it be that you changed the Model in a way that made the mutation callback query invalid?
m
Nope, don’t think so. Adding a field shouldn’t make it invalid, no?
n
nope
👍🏽 1
can you reproduce this problem?
m
Yeah, I just did. Navigating to the
Mutation Callbacks
, they all didn’t work and I just clicked one after another and eventually they worked again. Bizarre.
Here’s the Chrome error message, maybe my use of
NODE_ENV='development'
is creating this.
Copy code
You are currently using minified code outside of NODE_ENV === 'production'. This means that you are running a slower development build of Redux. You can use loose-envify (<https://github.com/zertosh/loose-envify>) for browserify or DefinePlugin for webpack (<http://stackoverflow.com/questions/30030031>) to ensure you have the correct code for your production build.
And this
warning
Copy code
Server request for query `ActionBoxes_ActionRelayQL` failed for the following reasons:

1. Can't find appropriate subtype for field at path node (line 1, column 45):
query ActionBoxes_ActionRelayQL($id_0:ID!) {node(id:$id_0) {id,__typename,...F0}} fragment F0 on Action {id,description,triggerType,handlerType,triggerMutationModel {model {id,name},mutationType,fragment,id},handlerWebhook {url,id}}
                                            ^
   RelayQL($id_0:ID!) {node(id:$id_0) {id,__typename,...F0}} fr
                       ^^^
n
could you please add that information to this ticket: https://github.com/graphcool/console/issues/765
👍🏽 1
s
Thanks!
👍🏽 1