Skip to content

Instance Method

isAttached(toID:on:)

Check whether a specific model ID is already attached through a sibling relationship.
func isAttached(toID: To.IDValue, on database: any Database) -> EventLoopFuture<Bool>

Parameters

toID

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

database

The database to perform the check on.