Do you prefer one, two, or a combination? @kjs and I are designing a new TypeScript schema definition for Ponder to replace schema.graphql. This makes the TS lang server very snappy by eliminating a codegen step. Also unblocks direct database access.
Why not both? Named exports for the example on the left, and a default export for the right - have your cake and eat it too 🍰🍽️
right side. Can you still `import type { Infer } ...` when using right side?
Left seems similar to drizzle which I have been enjoying quite a lot recently so I side with that Would probably also prefer even more like drizzle where you point to the schema file and each named export defines a table schema
Types as strings always felt like a failure to me, right seems like the way to go