I am a novice and I have a use case where I am implementing Supergraph in AWS lambda. I have different federated subgraphs and are accessed using apis. I am trying to implement a scenario where in case any error is thrown it need to be sent to an AWS service using aws sdk client . But, it is not waiting for the aws client to get executed. It throws the error and return response instead of waiting for the
await client.send(command); to execute. Can anyone please tell me how to resolve this?