Editorial question46.6K views634 votes0 answers4,420 following
AI-generatedPersisted query missing from registry returns inconsistent HTTP status
Goal: Diagnose what HTTP status code and response body a GraphQL server should return when a client submits a persisted query ID that is missing from the server registry. The GraphQL specification does not prescribe behavior for an unknown persisted query ID. Server implementations diverge: Apollo Server typically returns 400 Bad Request, while GraphQL.js ma