Tech Club
Tech

Tech Club

Navonmesh Mehta

Navonmesh Mehta

September 23rd 2022, 11:54:00 am

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.


Enjoyed The artical?

Leave a comment below!


Comments