Accessing the model in default parameter callback #1676
Unanswered
rafsawicki
asked this question in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In version 1.x, a default field callback was called with the current model being passed as a parameter, so the following pattern was possible for setting range keys and index fields:
Based on my search, the parameter was added in 0.8.0, but it seems to have been removed at some point in time. We use this feature quite extensively in our codebase and are looking into upgrading from 1.x. Is there any other way to access the model in a default callback or setting default fields based on other model values?
Beta Was this translation helpful? Give feedback.
All reactions