Closed plummer closed 7 years ago
Note, softDelete test failing before PR.
If you could add a test with a model containing an array, that'd make this perfect!
Will do, thanks!
Hey @Joannis, wasn't really sure where to put tests, given AFAIK this functionality is only for Mongo and the rest of the tests are reused from Fluent. However these tests fail without the above PR, and pass now.
Let me know at a high level if / how you want me to change the tests - thanks!
I'm having a look tonight
having the same issue, I can confirm this PR fixes it
Hi,
I'm unable to save arrays in fluent models with Mongo. I don't know if this is the most appropriate way or place to fix this, however it works.
My failing code inside makeRow is:
try row.set("list", list)
where list isNode
made withNode.array([Node])
.Currently saves a blank object, not actually an array, and with no data.
Change: Checks if it is an array, and converts to document. Saving now successful.