Skip to content

Graphql: can't filter entity collection by ids #2190

Description

@CvekCoding

Hello!

Looks like I found a bug. If I add filter to the entity this way:

/**
 * @ApiResource()
 * @ApiFilter(SearchFilter::class, properties={"id": "exact"})
 */
class Entity

Then I receive the following schema:
Entity(first: Int, after: String, id: Int, id_list: [Int])

When I apply filter by id, it's ignoring and returns me the full collection.
Also I believe that the id must string like /entities/1 instead of integer.

Or I'm doing something wrong?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Fields

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions