Skip to content

Middleware Logging for generateObject and passing additional parameters to middleware #4590

Answered by lgrammel
LaurinBrechter asked this question in Help
Discussion options

You must be logged in to vote

Just to clarify, it seems that it is not possible to use generateObject with middleware. Is this correct?

No, that is not correct. The middleware works on the model level and wrapped models are usable in generateObject.

Re args: you can use factory functions for your middleware and pass in what's needed. Would that work?

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@LaurinBrechter
Comment options

Answer selected by LaurinBrechter
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants