wundergraph.andert.me/.wundergraph/wundergraph.server.ts
2022-12-31 13:20:11 +01:00

17 lines
490 B
TypeScript
Executable File

import { configureWunderGraphServer } from "@wundergraph/sdk/server";
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: {},
}
}));