Tim Condon
Tim Condon
@mynonaGithub you're mixing eager loading and joining. The crash you're getting is because you're eager loading the relation but then telling it to only select a subset of fields. That...
```swift let result: EventLoopFuture = Article .query(on: req.db) .join(Author.self, on: \Article.$author.$id == \Author.$id, method: .inner) .sort(\.$date, .descending) // sort articles by date .field(\.$title) .field(Author.self, \.$first_name) .all() ``` Note that using...
Where else should this be documented?
I think this could be a useful enhancement. If you're happy to do the PR feel free otherwise we can add it to the backlog
If you set the app identifier to use `Application`s storage, you can wrap it in a lock, similar to how the HTTP Client works https://github.com/vapor/vapor/blob/master/Sources/Vapor/HTTP/Client/Application%2BHTTP%2BClient.swift#L19-L38
This is related to #2735 - the full body isn't available to middleware if it's over a certain size
Something like (pseudocode): ```swift extension WebSocket { func send(_ data: T, encoder: JSONEncoder = JSONEncoder()) where T: Codable { guard let data = try? encoder.encode(data), let dataString = String(data: data,...
@cshadek which database are you using and what notice logs are you seeing? On both SQLite and Postgres I can't see any notice logs printed for the migrations
Do you get the same behaviour if you update all your packages?
Additionally do you set the log level _before_ you add the migrations to the app migration list?