'How do I send an authorization header in apollo server execute operation?

How to send authorization header with this code without having a typescript error?

const result = await apolloServer.executeOperation({
        query: `{ getUsers { id } }`,
})


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source