Example: Array of both references and non-references
Arrays can contain mixed types – subject to the identified below. This includes mixing references and non-references (e.g., objects).
Let's consider the previous example once more. This time, we want castMember to be stored as a separate document that our array should reference, while crewMember is a type where we want to store an inline instance of the actual object.