Originally created by @markst on GitHub (Nov 9, 2018).
There doesn't seem to be any documentation on whether chaining multiple `where` clauses is possible?
It appears the following doesn't work:
```swift
return CoreStore.fetchCount(
From<Booking>()
.where(\.customer == self)
.where(\.bookingStatus == BookingStatus.cancelled.rawValue)
) ?? 0
```
and must be expressed as a single predicate.
adam
added the question label 2025-12-29 15:27:12 +01:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Originally created by @markst on GitHub (Nov 9, 2018).
There doesn't seem to be any documentation on whether chaining multiple
whereclauses is possible?It appears the following doesn't work:
and must be expressed as a single predicate.
@markst commented on GitHub (Nov 9, 2018):
https://github.com/JohnEstropia/CoreStore/blob/45e110755dd5ac3af201b9d8ff16f2af909f6539/Sources/Where.swift#L273
@JohnEstropia commented on GitHub (Nov 9, 2018):
You can use
&&and||operators instead:@markst commented on GitHub (Nov 9, 2018):
Thanks. Just no mention of it in readme.