Instance Method
isAttached(to:on:)
Check whether a specific model is already attached through a sibling relationship.
func isAttached(to: To, on database: any Database) -> EventLoopFuture<Bool>
Parameters
toThe model to check whether it is attached through a pivot.
databaseThe database to perform check on.