You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With the feature introduced by #257, setting a nullable object to null that has a nested relationship (tested with ManyOf), results in a TypeError: Object.defineProperty called on non-object
E.g:
constdb=factory({a: {id: primaryKey(()=>1),nested: nullable({b: manyOf('b')// problematic})},b: {id: primaryKey(()=>1)}});// Works finedb.a.create()// Works finedb.a.create({nested: {b: [db.b.create()]}})// Errordb.a.create({nested: null})
With the feature introduced by #257, setting a nullable object to null that has a nested relationship (tested with
ManyOf
), results in aTypeError: Object.defineProperty called on non-object
E.g:
Object.defineProperty
in definePropertyAtPath is called withnull
(parent
)CC @yishayweb
The text was updated successfully, but these errors were encountered: