Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ORM Clash when using with stubs #76

Open
apstanisic opened this issue May 20, 2023 · 0 comments
Open

ORM Clash when using with stubs #76

apstanisic opened this issue May 20, 2023 · 0 comments
Labels
orm Relevant to ORM

Comments

@apstanisic
Copy link
Owner

apstanisic commented May 20, 2023

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.

@apstanisic apstanisic added the orm Relevant to ORM label May 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
orm Relevant to ORM
Projects
None yet
Development

No branches or pull requests

1 participant