Instance Method
attach(_:on:_:)
Attach a single model by creating a pivot model.
func attach(_ to: To, on database: any Database, _ edit: @Sendable (Through) -> () = { _ in }) -> EventLoopFuture<Void>
Parameters
toThe model to attach through a sibling releationship
databaseThe database to perform the attachment on.
editAn optional closure to edit the pivot model before saving it.