graphql

2020-06-22T14:44:34.200700Z

We called that pattern the 'pre-resolve' (or 'hoisting') and it got more complicated for us. For example we would first try to check which fields and sub fields were being queried so we could optimise the fetch. And the more your graph diverges from your data source the higher you might have to hoist and the less reusable your code becomes

hlship 2020-06-22T16:28:25.201300Z

We call it the "oracular" pattern; you have an Oracle that predicts what is to come in the future.

domkm 2020-06-22T16:49:35.202700Z

@hlship Why isn't lacinia-pedestal able to use the same endpoint for both HTTP and WS (https://lacinia-pedestal.readthedocs.io/en/latest/subscriptions.html#endpoint)?

hlship 2020-06-22T16:51:02.203100Z

That's a limitation of Pedestal and, I suspect, derives from how Jetty implements web sockets.

domkm 2020-06-22T17:28:12.203200Z

I see, thanks