Doctrine filters documentation should use QueryParameter · Issue #2202 · api-platform/docs · GitHub
Skip to content

Doctrine filters documentation should use QueryParameter #2202

Closed

Description

@toyib-fayaz

API Platform version(s) affected: 3.0

Description
In the Official Documentation, it is mentioned that we should use QueryParameter instead of ApiFilter
doctrine-filters. But on this documentation page, there is no example of how QueryParameter is used for adding a filter; instead, every example uses ApiFilter. I found some examples here in laravel-filters, but when I similarly tried to use QueryParameter in my Symfony api, it doesn't work

How to reproduce
Use QueryParameter Attribute instead of ApiFilter and then try to add a query parameter to url and check whether it works. Check the documentation here laravel-filters to check how to use it.

Activity

  1. transferred this issue fromapi-platform/coreon Sep 11, 2025
  2. changed the title [-]QueryParameter doesn't work for Symfony[/-] [+]Doctrine filters documentation should use QueryParameter[/+] on Sep 11, 2025
  3. vinceAmstoutz commented on Sep 15, 2025

    @vinceAmstoutz
    Member

    @toyib-fayaz Solved, you can found the documentation in the main version and soon in the 4.2 version of the doc: https://api-platform.com/docs/main/core/doctrine-filters/

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions