Testing
Testing GraphQL Queries and Mutations with Vitest
GraphQL APIs have a different failure surface than REST. A resolver can return the wrong shape. A mutation can succeed at the transport layer but fail to persist. Error responses are embedded in a 200 OK body under an errors key. Variables can coerce silently, or fail loudly, depending on