wundergraph.andert.me/.wundergraph/wundergraph.server.ts

18 lines
506 B
TypeScript
Raw Normal View History

2022-11-03 08:53:54 +00:00
import { configureWunderGraphServer } from "@wundergraph/sdk";
import type { HooksConfig } from "./generated/wundergraph.hooks";
import type { InternalClient } from "./generated/wundergraph.internal.client";
2022-10-28 12:42:05 +00:00
export default configureWunderGraphServer<HooksConfig, InternalClient>(() => ({
2022-11-03 08:53:54 +00:00
hooks: {
queries: {
Weather: {
postResolve: async (hook) => {
hook.log.info("postResolve hook for Weather");
},
},
2022-10-28 12:42:05 +00:00
},
2022-11-03 08:53:54 +00:00
mutations: {},
},
graphqlServers: [],
2022-10-28 12:42:05 +00:00
}));