Collection2 Standard Array

It seems the only array allowed with Collection2 is an array of objects [{name: Tom}, {name: Dick}, {name: Harry}]. That means a standard array [Tom, Dick, Harry] ]must be converted to a string before saving. Am I missing something?

Simple Schema is the driving force behind what is allowed / not allowed, and it definitely allows arrays of Strings. Check the Simple Schema docs and search for [String] to see an example.

1 Like