Defining Back Relations with Effect Schema
How to define back relations aka circular dependencies with Effect Schema? Here's an example:
As mentioned in the docs, I'm using suspend. I also tried a few options like S.suspend around Comment or Post itself, but I get the following type error from TypeScript
As mentioned in the docs, I'm using suspend. I also tried a few options like S.suspend around Comment or Post itself, but I get the following type error from TypeScript

