api-platform / api-platform/core

Filter Only The Serializable Fields

Open
#1,096 0 comments 0 reactions 0 assignees View on GitHub
Has a PR
Dominant language
PHP
Stars
2.6k
Forks
980
Avg merge
2d 5h
Merged PRs (30d)
48

Description

Api Platform is the best API Framework Ever is used. It's great framework.

Recently, when we activate the filter feature without specific fields defined, for example
```
bisnis.filter.order_filter:
parent: 'api_platform.doctrine.orm.order_filter'
arguments: [ ~ ]
tags:
- { name: 'api_platform.filter', id: 'order.filter' }
```

The Api Platform (see Api Doc) processing all fields based on doctrine metadata even the fields is not displayed. Is good choice to filter only the fields that displayed by serialization not all fields.

Reference: https://github.com/api-platform/core/blob/master/src/Bridge/Doctrine/Orm/Filter/OrderFilter.php#L84

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.