17 lines
490 B
TypeScript
Executable File
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: {},
|
|
}
|
|
}));
|