You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
Let's say we want to initialize a field (like tenantId, requestId, etc) using request specific context inside hooks, it will not be possible as the hooks do not accept any method parameter. Right now, there is no way to initialize a field of the model inside the hooks, using some value present in context.
Describe the solution you'd like
The hooks should accept one parameter called context. Then methods like create, createWithContext should pass the context parameter to the hooks as well. This will help to use context to initialize the request specific parameters in hooks.
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
Let's say we want to initialize a field (like tenantId, requestId, etc) using request specific context inside hooks, it will not be possible as the hooks do not accept any method parameter. Right now, there is no way to initialize a field of the model inside the hooks, using some value present in context.
Describe the solution you'd like
The hooks should accept one parameter called context. Then methods like create, createWithContext should pass the context parameter to the hooks as well. This will help to use context to initialize the request specific parameters in hooks.
The text was updated successfully, but these errors were encountered: