wundergraph.andert.me/.wundergraph/wundergraph.server.ts
2022-12-02 16:54:48 +05:30

18 lines
506 B
TypeScript
Executable File

import { configureWunderGraphServer } from "@wundergraph/sdk";
import type { HooksConfig } from "./generated/wundergraph.hooks";
import type { InternalClient } from "./generated/wundergraph.internal.client";
export default configureWunderGraphServer<HooksConfig, InternalClient>(() => ({
hooks: {
queries: {
Dragons: {
postResolve: async (hook) => {
hook.log.info("postResolve hook for Dragons");
},
},
},
mutations: {},
},
graphqlServers: [],
}));