Function-based top-level fields, mutations and execution context
A very minimal example using Grats to define mutations using free functions and how a context value can be passed down to all resolvers.
Libraries used
express
graphql-http
https://github.com/captbaritone/grats/tree/main/examples/express-graphql-http-functions