Use pre-compiled GraphQL -> SQL queries / JoinMonster with Apollo?

Hi! I know with GraphQL there are tools that can compile entire queries to single reads from the database. One example is the Kensho GraphQL compiler. Another is Join Monster for Node.

I was wondering, is it possible to define optimizations in an Apollo server so, if there is a pre-compiled SQL query for a given graphql query, I can use the the pre-compiled & optimized query instead of the typical resolvers?