CityWebConsultants / Iris

Modular content management and web application framework built with Node.js and MongoDB
http://irisjs.org
Other
9 stars 7 forks source link

Helper to load attached entity references during entity fetch #331

Closed FilipNest closed 7 years ago

FilipNest commented 7 years ago

There is possibly a better solution but this is harmless and makes the entity reference system much more usable before we think up a better alternative. Pass loadReferences with an array of which reference field you want to load the entity for and it'll get attached to the entity fetch.