You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This could be a nice addition (might apply to more places than just .filter())
Ie passing queries as arguments to functions such as filter and sort.
let pivotsWeDontWant = [pivotID1, pivotID2, pivotID3]
// grabs pivotIDs we want to exclude from final query
let subquery = PivotModel.query(on: db).field(\.$mainModel.$id)filter(\.$id ~~ pivotsWeDontWant)
// passes the subquery to a filter to exclude the collected IDs
let query = MainModel.query(on: db).filter(\.$id !~ subquery)
The text was updated successfully, but these errors were encountered:
This could be a nice addition (might apply to more places than just
.filter()
)Ie passing queries as arguments to functions such as filter and sort.
The text was updated successfully, but these errors were encountered: