@whatwg-node/server
THIS INTEGRATION IS EXPERIMENTAL. PRs improving it are welcome.
Create the Grafserv instance:
import { grafserv } from "grafserv/whatwg-server__node/v0";
import preset from "./graphile.config.mjs";
import schema from "./schema.mjs";
// Create a Grafserv instance
const serv = grafserv({ schema, preset });
// Create the handler/adaptor to be used by the server of your choice
const myServerAdapter = serv.createHandler();
Then add it to the server of your choice; see instructions in the @whatwg-node/server README.