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
class Users < ROM::Relation[:sql] schema(:users, infer: true) do associations do has_many :tasks end end end class Tasks < ROM::Relation[:sql] schema(:users, infer: true) do associations do belongs_to :user end end end class UserRepo < ROM::Repository[:users] # new_user = { name: "Jim", tasks: [{desc: "test"}, {desc: "test1"}]} def create(new_user) users.transaction do users.combine(:tasks).changeset(:create, new_user).commit end end end
It seems that users.combine(:tasks).changeset(:create, new_user).commit just inserts only the aggregate root.
users.combine(:tasks).changeset(:create, new_user).commit
The text was updated successfully, but these errors were encountered:
No branches or pull requests
It seems that
users.combine(:tasks).changeset(:create, new_user).commit
just inserts only the aggregate root.The text was updated successfully, but these errors were encountered: