<repo>
i also managed to make the field resolving concurrent in the graphql shard. It seems a bit like a hack though... I have to build individual json fragments for the fields and then add them to the current builder using JSON::Builder#raw...
<repo>
i'll try another approach where i build a nested hash and then have the json serialization as a separate step
<repo>
would seem cleaner to me
<FromGitter>
<Blacksmoke16> would it makes sense for the data loader to like include `Iterator`
<FromGitter>
<Blacksmoke16> or at least `Enumerable`
jmdaemon has joined #crystal-lang
onyx has quit [Read error: Connection reset by peer]
yxhuvud has quit [Read error: Connection reset by peer]
<FromGitter>
<Blacksmoke16> so you could pass it to things that are typed like that. but after looking at the code again prob wouldnt make too much sense
<FromGitter>
<Blacksmoke16> nice one!
<repo>
yeah the dataloaders would be pretty short lived objects and live in a request context
<repo>
the cache would otherwise make no sense
<repo>
it should reduce database calls made during a single request
<repo>
(which in a graphql request can be veeeery many)