graphql

2020-02-16T12:16:40.077800Z

I am actually writing a library to help compose queries, specifically the n+1 problem https://github.com/oliyh/superlifter

👍 3
hlship 2020-02-17T17:39:32.084500Z

It'll be interesting to compare; we have a Dataloader library that we're trying to get through the Walmart open-source pipeline.

hlship 2020-02-17T17:40:04.084700Z

I think our approaches are simiilar. We'll see.

2020-02-16T12:17:10.078700Z

It uses the composability + deduplication characteristics of urania

2020-02-16T12:17:52.079800Z

There is an example folder with a Lacinia example of the n+1 solution using superlifter

2020-02-16T12:18:35.081100Z

I'm halfway through refactoring how it works though so it's definitely not stable yet but it's nearly where I want it to be (see the pools branch if you're really interested)

2020-02-16T12:20:29.084100Z

Essentially at resolve time you throw all your work into a bucket and the bucket of work is performed asynchronously, either after a certain amount of time has passed (dataloader style) or when the bucket reaches a certain size (useful for n+1 when you know n in advance)