As discussed in #1, splitting handleMessage in graphql-query-handler.ts into two separate functions would make the code more intuitive to understand.
This would require changes to the function code of handleMessage and the CDK definition of the corresponding Lambda function(s)