Issue with using Effect<Context, never, RequestResolver<>> with dataLoader()

Hi! quick question.
I am using { dataLoader } from '@effect/experimental/RequestResolver', which accepts only a RequestResolver as the first argument. I now want to use a resolver with context like in this example https://effect.website/docs/batching-caching#resolvers-with-context, but now the type of the resolver is Effect<Context, never, RequestResolver<>>, which works fine with Effect.request(), but not with the dataLoader(). My first thought was that I have to yield the resolver before passing it to the dataLoader, but this does not work.
How can I solve this?
A fully-fledged functional effect system for TypeScript with a rich standard library
Batching & Caching – Effect
Was this page helpful?