Open cshadek opened 3 years ago
Having a functional API is something I have been wanting to add for so long but unfortunately, the Swift echo system doesn't have a standard functional API. I do have plans to add functional API based on Combine/OpenCombine
in the future (probably after 1.0).
This would be similar to how Fluent works in Vapor and avoid callbacks.
I could see something along these lines:
Where
.search()
returns anEventLoopFuture<SearchResponse<T: Codable>>
It would make the code much more concise (Swifty 😉) and would fit better with packages like Vapor and Soto.