How to use GraphQL API in GraphQL backend server?

This is a general situation, but what if I need to change the query and variables? Some parameters cannot be passed on the client side. They need to be calculated on the backend and then passed to the request.