If this expose is to “the world”, It is not recommended.
There is a new feature called “custom logic” for GraphQL. With it, you can make calls to lambdas, REST and other activities that can be done via HTTP. Perhaps it will be useful for you.
Related to what exactly?
Cheers.