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

feat: allow including relationships by default #96

Merged
merged 3 commits into from
Mar 29, 2024

Conversation

SychO9
Copy link
Contributor

@SychO9 SychO9 commented Feb 10, 2024

Hello 👋🏼,

This is a beautifully written package, it has been great working with 🙏🏼.

We have come across a use case where we need some relations included by default. We currently have to maintain a fork of our own due to some very unique edge case behavior that probably don't make sense having in the origin repository.

I am not sure if you would want to support default includes, but thought I'd send this your way just in case. Will probably push more for other changes that might make sense to contribute back as well.


This would work per endpoint:

Endpoint\Show::make()
    ->defaultInclude(['groups', 'actor'])

@tobyzerner tobyzerner merged commit 7f108dd into tobyzerner:main Mar 29, 2024
2 of 3 checks passed
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.

2 participants