Preventing Duplicate GraphQL Mutations with the Angular Service Worker and AWS Amplify
A GraphQL mutation gets executed twice on the server even though the client sent it once. The symptom pattern: two records with byte-identical payloads but different server-generated IDs, written 2 to 4 seconds apart by two separate resolver invocations. Only in production. Never reproducible on demand. If your Angular app registers @angular/service-worker and talks to AppSync through AWS Amplify, this is not a bug in your code. It is an interaction between two framework defaults.