Transforming Firestore Transactions with Effect and Context Inheritance
I'm trying to use effect on firestore. one thing i'm not sure of is how to transform the transaction api:
I can go up to:
I want to inherit the current runtime and context within the transaction
firestore.runTransaction(async (tx) => { /* use tx */ })I can go up to:
Effect.tryPromise(() => firestore.runTransaction( /* how do i create promise here from an effect? */)I want to inherit the current runtime and context within the transaction
