Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ibustosatlegalzoom
Copy link
Contributor

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.

@auvipy auvipy self-requested a review August 11, 2024 08:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant