Skip to content

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

to

The model to check whether it is attached through a pivot.

database

The database to perform check on.