Meteor collection2 array with Strings and Object
问题 i'm using Meteor with collection2 and I have an array that looks like this: productTypes = ["string1", "string2", "string3", {Other: "test"}] Essentially there will be anywhere from 0 to 7 strings in the array, and Other: 'Test' may or may not be present So i'm trying to make a schema that handles that case. Is there a way to tell it that there will be strings and an object within an array? I've tried const residentSchema = new SimpleSchema({ productTypes: {type: [String, Object], optional: