We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 69bf8ba commit 086db52Copy full SHA for 086db52
src/Api/Projection/UserProjection.php
@@ -4,8 +4,10 @@
4
5
namespace App\Api\Projection;
6
7
+use ApiPlatform\Core\Annotation\ApiFilter;
8
use ApiPlatform\Core\Annotation\ApiProperty;
9
use ApiPlatform\Core\Annotation\ApiResource;
10
+use ApiPlatform\Core\Bridge\Elasticsearch\DataProvider\Filter\MatchFilter;
11
use Symfony\Component\Serializer\Annotation\Groups;
12
13
/**
@@ -26,6 +28,7 @@
26
28
* normalizationContext={"groups"={"user:read"}},
27
29
* denormalizationContext={"groups"={"user:write"}},
30
* )
31
+ * @ApiFilter(MatchFilter::class, properties={"email"})
32
*/
33
class UserProjection
34
{
0 commit comments