Add side effects to generated crud resolvers #252
-
What is the best practice for triggering side effects from a generated crud resolver? For instance, I need to send messages to an aws sqs queue on create. I could do this using middleware but not sure if this the right approach. |
Beta Was this translation helpful? Give feedback.
Answered by
MichalLytek
Feb 19, 2022
Replies: 1 comment 6 replies
-
I think middlewares are the right solution for this. You can also try extending the generated resolver and overriding the method. |
Beta Was this translation helpful? Give feedback.
6 replies
Answer selected by
bmayen
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I think middlewares are the right solution for this. You can also try extending the generated resolver and overriding the method.