Skip to content

Filter on findById is ignoring the where clause #3336

@mmbabel

Description

@mmbabel

Steps to reproduce

Submit to any findById call the optional filter argument with a where clause.

Current Behavior

The where clause is beeing ignored and the item is returned in all cases.

Expected Behavior

The item will only be returned if it matches the where clause.

Additional information

This is needed to add item level security based on filters by an Interceptor.

Related Issues

#1721
Although this issue is about the include and fields of the filter

Acceptance Criteria

_Getting from @bajtos' comment

  • fix TypeScript definitions and our API docs to make it clear which filter properties are accepted by findById function.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions