add post resolve hook
This commit is contained in:
		@@ -1,11 +1,17 @@
 | 
				
			|||||||
import {configureWunderGraphServer} from '@wundergraph/sdk';
 | 
					import { configureWunderGraphServer } from "@wundergraph/sdk";
 | 
				
			||||||
import type {HooksConfig} from './generated/wundergraph.hooks';
 | 
					import type { HooksConfig } from "./generated/wundergraph.hooks";
 | 
				
			||||||
import type {InternalClient} from './generated/wundergraph.internal.client';
 | 
					import type { InternalClient } from "./generated/wundergraph.internal.client";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
export default configureWunderGraphServer<HooksConfig, InternalClient>(() => ({
 | 
					export default configureWunderGraphServer<HooksConfig, InternalClient>(() => ({
 | 
				
			||||||
  hooks: {
 | 
					  hooks: {
 | 
				
			||||||
        queries: {},
 | 
					    queries: {
 | 
				
			||||||
 | 
					      Weather: {
 | 
				
			||||||
 | 
					        postResolve: async (hook) => {
 | 
				
			||||||
 | 
					          hook.log.info("postResolve hook for Weather");
 | 
				
			||||||
 | 
					        },
 | 
				
			||||||
 | 
					      },
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
    mutations: {},
 | 
					    mutations: {},
 | 
				
			||||||
  },
 | 
					  },
 | 
				
			||||||
    graphqlServers: []
 | 
					  graphqlServers: [],
 | 
				
			||||||
}));
 | 
					}));
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user