FetchError: request to http://localhost/graphql failed, reason: connect ECONNREFUSED 127.0.0.1:80

I tried to mutate the mutation on API routes but got the above error.

@yossFazwaz are you sure your GraphQL server is running locally on port 80? Ports below 1024 are restricted by default and can usually only be used by super users, which means most local dev servers are on ports >= 1024. I’d recommend checking your dev server port and making sure your configured GraphQL API includes the proper port.