romeerez / orchid-orm

Orchid ORM
https://orchid-orm.netlify.app/
MIT License
479 stars 12 forks source link

[ask] ormFactory.relation is never type #245

Open bingtsingw opened 3 months ago

bingtsingw commented 3 months ago
image image

console.log(factory) prints an object, but console.log(df.city) throws an error of undefined is not an object (evaluating 'string._def')

romeerez commented 3 months ago

There is a problem with test factories that it works only if you're using zod schema provider. I'm not sure how to make it validation-lib agnostic and I've delayed this problem for later.