Skip to content

Commit

Permalink
Fix internal server error for operation name
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-watson committed Apr 2, 2024
1 parent e5c4895 commit 567944b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ async function main() {
shouldWriteToCache: async (requestContext) => {
if (
requestContext.operationName != "IntrospectionQuery" &&
!requestContext.operationName
.toLowerCase()
.includes("introspection")
!requestContext?.operationName
?.toLowerCase()
?.includes("introspection")
){
console.log(
`Hash: ${requestContext.queryHash}\n\tAge: ${
Expand Down

0 comments on commit 567944b

Please sign in to comment.