lighthouse
lighthouse copied to clipboard
Allow constraining allowed relations in `@whereConditions` and `@whereHasConditions`
- [x] Added or updated tests
- [ ] Documented user facing changes
- [x] Updated CHANGELOG.md
https://github.com/nuwave/lighthouse/issues/1754
Changes
Allow constraining the allowed relations to an enum via the directive arguments relations and relationsEnum in @whereConditions and @whereHasConditions. This works analogous to columns and columnsEnum.
Breaking changes
None.
@LastDragon-ru please review.
Is this abandoned? Do we have a way to define the column names for relations?
Are there any chances of this being integrated into core?
Maybe in the future, please see https://github.com/nuwave/lighthouse/issues/1782#issuecomment-991911658