feathers-objection
feathers-objection copied to clipboard
_create() not fetching relations. Shouldn't it use insertGraphAndFetch()
_create()
, which uses internal class method _getCreatedRecords()
is not fetching relations. However, _update()
and _patch()
do fetch relations but is using upsertGraphAndFetch()
.
Does it make sense that _create()
should use insertGraphAndFetch()
, similarly to patch/update? Is there a reason I’m not seeing why _getCreatedRecords()
is used instead of insertGraphAndFetch()
?
Hi @bslayton, I have no idea, but Maybe @mdmitry01 can answer this one.