Skip to content

Instance Method

detach(_:on:)

Detach a single model by deleting the pivot.
func detach(_ to: To, on database: any Database) -> EventLoopFuture<Void>

Parameters

to

The model to detach from this model.

database

The database to perform the attachment on.