A simple example of how to run an Apollo GraphQL server on Cloudflare Workers. Repository.
Largely copied from the offical repo.
It uses parcel to bundle all dependencies into one file, which you can then copy into a cloudflare worker.
You will need a GraphQL client to test out the server - I recommend Altair.