Skip to content

Allow multiple QueryParameter filters for the same key with different properties #8184

Description

@aelfannir

Description
Right now, if you add multiple #[QueryParameter] annotations with the same key but different properties and filter types, only the last one works, it overrides the earlier ones.

In real use cases, developers often need different filters for different fields under the same key. It would make more sense if each property could have its own filter, so filters only override each other when they target the same property.

Example

#[QueryParameter(
    key: ':property',
    filter: new ExactFilter(),
    properties: ['field1', 'field2'],
)]
#[QueryParameter(
    key: ':property',
    filter: new BooleanFilter(),
    properties: ['field3', 'field4'],
)]

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions