3 ms·
> without schemas What is a type definition if not a schema?
by tantalor 5y ago
> without schemas
What is a type definition if not a schema?
- sirtimbly 5y agoConceptually, yes. But type definitions are exported by declarative lines in the same code that runs. Basically the schema is imperative code that runs actual validations, the tRPC methodology simply looks at the inferred types from that code to enforce consistency between client and server rather than parsing an actual static schema artifact (e.g. a .gql file).