feathers-objection icon indicating copy to clipboard operation
feathers-objection copied to clipboard

_create() not fetching relations. Shouldn't it use insertGraphAndFetch()

Open bslayton opened this issue 3 years ago • 1 comments

_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()?

bslayton avatar Jul 23 '21 15:07 bslayton

Hi @bslayton, I have no idea, but Maybe @mdmitry01 can answer this one.

dekelev avatar Jul 25 '21 07:07 dekelev