apstanisic / zmaj

Zmaj is a headless CMS for managing database
https://zmaj.vercel.app
MIT License
5 stars 0 forks source link

ORM Clash when using with stubs #76

Open apstanisic opened 1 year ago

apstanisic commented 1 year ago

Stub is creating fake data, but it creates fake createdAt and other fields that should not be created. I now have dozens of .omit({ createdAt: true}) and omit(data, ['createdAt']).

It's also a problem, when value is canRead=false, since type is T | undefined, but create expects that value.