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

add option disable_invalid_includes_query_exception #906

Merged
merged 2 commits into from
Jan 8, 2024

Conversation

dimzeta
Copy link
Contributor

@dimzeta dimzeta commented Nov 2, 2023

By default when we add a non desired include, we automatically have an InvalidIncludeQuery. The option disable_invalid_includes_query_exception allow us to disable it.

When this option is enabled, we remove the non included relationship and having only allowed relationships.

@siarheipashkevich
Copy link

@AlexVanderbist please take a look at this PR

@AlexVanderbist
Copy link
Member

Awesome, thanks! (Sorry for the delay)

@AlexVanderbist AlexVanderbist merged commit 6abad36 into spatie:main Jan 8, 2024
15 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.

3 participants