wundergraph.andert.me/.wundergraph/wundergraph.server.ts
2022-11-03 14:23:54 +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: {
Weather: {
postResolve: async (hook) => {
hook.log.info("postResolve hook for Weather");
},
},
},
mutations: {},
},
graphqlServers: [],
}));