Ghost/test/unit
Simon Backx a30e42404b
Added getLazyRelation model helper method (#14943)
closes https://github.com/TryGhost/Team/issues/1626

- getLazyRelation is a safer shorthand for `model.related('relationName').fetch()`
- prevents doing a `fetch` operation on a relation that is already loaded, which can cause issues when `formatOnWrite` has a custom implementation
- uses the already loaded relation if it exists, or loads the relation
- doesn't reload if already loaded
- reload is forceable using the forceRefresh option
2022-05-31 13:21:53 +02:00
..
api Removed GA feature flags (#14915) 2022-05-26 09:54:30 +02:00
frontend 🎨 Reduced favicon requirements and added image formatting (#14918) 2022-05-27 16:36:53 +02:00
server Added getLazyRelation model helper method (#14943) 2022-05-31 13:21:53 +02:00
shared Fixed minor weirdnesses with excerpts 2022-05-24 12:35:59 +01:00