lighthouse icon indicating copy to clipboard operation
lighthouse copied to clipboard

Allow constraining allowed relations in `@whereConditions` and `@whereHasConditions`

Open spawnia opened this issue 4 years ago • 5 comments

  • [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.

spawnia avatar Jul 18 '21 20:07 spawnia

@LastDragon-ru please review.

spawnia avatar Dec 30 '21 12:12 spawnia

Is this abandoned? Do we have a way to define the column names for relations?

esistgut avatar Dec 13 '22 15:12 esistgut

Do we have a way to define the column names for relations?

You can try @searchBy directive ;)

LastDragon-ru avatar Dec 13 '22 16:12 LastDragon-ru

You can try @searchBy directive ;)

Are there any chances of this being integrated into core?

esistgut avatar Dec 13 '22 16:12 esistgut

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

LastDragon-ru avatar Dec 13 '22 18:12 LastDragon-ru