ravendb/ravendb-nodejs-client

Serialisation issue

Closed this issue · 2 comments

y-nk commented

When storing a value of a model, the SDK crashes under the following code:

const nullObj = Object.create(null)

ravenModel.someProp = nullObj
await session.saveChanges()

The reason is that nullObj doesn't have a prototype, which is used to determine the type of data (in Utility/TypeUtil)

ml054 commented
ml054 commented

Fixed in 5.2.1