Closed andregoldstein closed 6 years ago
Update:
I think I've tracked it down, I think because the findOne object is returning a multi-dimensional object, when I test with a single-level Object, it seems to pass. I don't actually need that depth so I'll transform the object before validation.
Though not sure if blackbox: true
is supposed to allow this. Thanks
Hmm actually, it appears to be returning a Document
object (sorry about the trail here)
Document {
_id: ...
}
Using Object.assign
would appear to resolve this: (CS)
animal = Object.assign {}, Animals.findOne item.animal._id
The Meteor SimpleSchema package is no longer maintained other than critical fixes to keep it running with each latest Meteor release. Closing non-critical issues in this repo. Anyone who cares about this may do one or more of the following:
Hi there, I've seen a few more historic issues relating to Object errors but I'm running into an issue where I'm trying in insert a basic Object not an array of Objects as below:
I'm passing in
animal
which is a direct call from afindOne()
query but this doesn't seem to be passing validation. Would you have any possible pointers? Thanks