diff --git a/src/index.ts b/src/index.ts index 90770dc..09f1965 100644 --- a/src/index.ts +++ b/src/index.ts @@ -89,7 +89,9 @@ function parseBody( body: string | null | undefined, contentType: string | undefined, ): object | null { - const isValidContentType = contentType?.startsWith('application/json'); + const isValidContentType = + contentType?.startsWith('application/json') || + contentType?.startsWith('application/graphql'); const isValidPostRequest = method === 'POST' && typeof body === 'string' && isValidContentType;