Skip to content

Latest commit

 

History

History
executable file
·
21 lines (12 loc) · 866 Bytes

File metadata and controls

executable file
·
21 lines (12 loc) · 866 Bytes

WunderGraph Hooks

This example demonstrates how to use the mutatingPostResolve hook to change the response of the Dragons operation. Hooks are the type-safe way to write custom middleware functions. If you need an overview about all possible hooks, please refer to the WunderGraph Hooks documentation.

Getting Started

Install the dependencies and run the complete example in one command:

npm install && npm start

After npm start has been executed, your browser should open a new tab and navigate to http://localhost:9991/app/main/operations/Dragons. In the console, you can see logs emitted by the mutatingPostResolve hook.

Learn More

Read the Docs.

Got Questions?

Join us on Discord!