Skip to content

Instance Method

join(_:_:method:)

.join(Foreign.self, filters, method: method)
@discardableResult func join<Foreign>(_ foreign: Foreign.Type, _ filters: [DatabaseQuery.Filter], method: DatabaseQuery.Join.Method = .inner) -> Self where Foreign : Schema

Discussion

Joins against Foreign with the specified method and using the given filter(s) as the join condition.