Jordan Eldredge @capt.dev · Oct 8

I built Grats' Derived Contexts on a whim, but it ended up being a simple yet powerful compile-time dependency injection engine. A field just defines its dependencies via typed arguments and Grats ensures it gets passed a value at runtime.

4 likes 3 replies

?

Replies

Joe Savona · Oct 9

Oh that’s brilliant. Great way to keep resolvers decoupled from GraphQL

Gabriel Nordeborn · Oct 9

What would you say are the big benefits compared to just using context + functions operating on context directly?