We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Let's define 3 models:
type Project struct { User User } type User struct { Avatar *Avatar } type Avatar struct { }
Using makroud.WithPreloadField("User.Avatar") on a Project is not working if User is a struct. However, it's working if User is a pointer.
makroud.WithPreloadField("User.Avatar")
Project
User
I think there is an error on the preload mechanism, it should mutate user with new value.
Thank @edouardparis for spotting this issue.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Let's define 3 models:
Using
makroud.WithPreloadField("User.Avatar")
on aProject
is not working ifUser
is a struct.However, it's working if
User
is a pointer.I think there is an error on the preload mechanism, it should mutate user with new value.
Thank @edouardparis for spotting this issue.
The text was updated successfully, but these errors were encountered: