add post resolve hook
This commit is contained in:
parent
f5efd3e7f7
commit
e1668cb6cd
@ -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: [],
|
||||
}));
|
||||
|
Loading…
Reference in New Issue
Block a user