add post resolve hook

This commit is contained in:
Nithin Kumar B 2022-11-03 14:23:54 +05:30
parent f5efd3e7f7
commit e1668cb6cd

View File

@ -1,11 +1,17 @@
import {configureWunderGraphServer} from '@wundergraph/sdk';
import type {HooksConfig} from './generated/wundergraph.hooks';
import type {InternalClient} from './generated/wundergraph.internal.client';
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: {},
mutations: {},
hooks: {
queries: {
Weather: {
postResolve: async (hook) => {
hook.log.info("postResolve hook for Weather");
},
},
},
graphqlServers: []
mutations: {},
},
graphqlServers: [],
}));