devour-client icon indicating copy to clipboard operation
devour-client copied to clipboard

Resolves #263 added a means to disable attaching relationship metadata on unresolved includes

Open ibustosatlegalzoom opened this issue 1 year ago • 0 comments

Screenshot

N/A

What Changed & Why

Learn more at #263

Introduced a flag attachRelationshipDataOnUnresolvedIncludes which by default is set to true for backwards-compatibility purposes.

When set to true, Devour will continue to attach relationship metadata in the client's response on unresolved includes as it normally does.

When set to false however, Devour will abstain from attaching such metatada. This applies both for relationships of type hasMany and hasOne-

Testing

Just run the tests.

Documentation

Updated the README file with instructions.

ibustosatlegalzoom avatar Jul 18 '24 14:07 ibustosatlegalzoom