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
Is it supports database relations? For example code below.
type User struct { Model Name string `form:"name" json:"name" valid:"required~Name is required"` Email string `form:"email" gorm:"unique_index" json:"email" valid:"email~Email isn't valid"` --->Stores []Store `form:"stores" json:"stores" valid:"email~Stores isn't valid"` Password string `form:"password" json:"-" valid:"required~Password is required"` BirthDay time.Time `form:"birthday" json:"birthday" valid:"required~Birth day is required" time_format:"02-01-2006"` Role roles.RoleType `gorm:"default:0" json:"role"` }
The text was updated successfully, but these errors were encountered:
Hello! Sorry for the late response, yes, it has limited support. Look at PreloadXXX method
PreloadXXX
Sorry, something went wrong.
No branches or pull requests
Is it supports database relations? For example code below.
The text was updated successfully, but these errors were encountered: