Issues with Schema Variance in RPC Entity Requests Using Effect/SQL Model

Hi everyone!

I'm trying to implement a function that generates common schema-tagged requests for RPC entities, using the Schema Variance from effect/sql/Model for CRUD operations. My VSCode typings are happy with the current implementation, but when I try to run or build the project, it fails.

Here’s an example where I might be missing something important 😅. Could you suggest any other approaches? the goal is reduce the boilerplate code for entities

Also, here's the playground for reference: https://effect.website/play#122b2d2c3ecf
Was this page helpful?