faustinoaq changed the topic of #amber to: Welcome to Amber Framework community! | https://amberframework.org | Developer happiness, productivity and bare metal performance | GH: https://github.com/amberframework | Docs: https://docs.amberframework.org | Gitter: https://gitter.im/amberframework/amber | IRC Logger: https://irclog.whitequark.org/amber | Amber::Server.start
<FromGitter> <Blacksmoke16> hey, so i needed https://github.com/amberframework/granite/pull/342 for some other project im working on
<FromGitter> <Blacksmoke16> its a start but would like some feedback
<FromGitter> <Blacksmoke16> @nsuchy @drujensen @robacarp
feepbot has quit [Ping timeout: 245 seconds]
feepbot has joined #amber
<FromGitter> <Blacksmoke16> created a custom CrSerializer assertion for making sure a record with a given ID exists
<FromGitter> <Blacksmoke16> ```code paste, see link``` [https://gitter.im/amberframework/amber?at=5d06bf946f0ec85ade1d7e93]
<FromGitter> <Blacksmoke16> behind the scenes would execute like `SELECT exists(SELECT 1 FROM listing_items WHERE id = $1);`
<FromGitter> <Blacksmoke16> most useful for APIs, as then you could assert that a record exists for a property with the given id
<FromGitter> <Blacksmoke16> for example
<FromGitter> <Blacksmoke16> ```code paste, see link``` [https://gitter.im/amberframework/amber?at=5d06c029f5cf1f10bc848995]
<FromGitter> <Blacksmoke16> would be able to return, ⏎ ⏎ ```code paste, see link``` [https://gitter.im/amberframework/amber?at=5d06c037faf70031f9275a4e]
<FromGitter> <Blacksmoke16> 💯
<FromGitter> <Blacksmoke16> vs handling it within a controller action
<FromGitter> <Blacksmoke16> wish there was a better way to handle the items array
<FromGitter> <Blacksmoke16> would be neat if calling save on the outer obj handled saving nested types as well
<FromGitter> <Blacksmoke16> but could get tricky