graphql-compose-mongoose
graphql-compose-mongoose copied to clipboard
how to make add/update/delete audit for all resolvers ?
Hello
I wrote a collection for audit but I want a simple way to insert all logs in it
any help please ?
You may wrapResolvers (https://graphql-compose.github.io/docs/en/basics-resolvers.html) with your additional logic.
After success wrapping one resolver, you may write a helper function which will do it for all your needed types/resolvers.