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 f5cf934 commit 434f091Copy full SHA for 434f091
1 file changed
tests/Fixtures/TestBundle/Document/ParameterOnProperties.php
@@ -13,9 +13,11 @@
13
14
namespace ApiPlatform\Tests\Fixtures\TestBundle\Document;
15
16
+use ApiPlatform\Doctrine\Odm\Filter\PartialSearchFilter;
17
use ApiPlatform\Metadata\ApiResource;
18
use ApiPlatform\Metadata\Get;
19
use ApiPlatform\Metadata\GetCollection;
20
+use ApiPlatform\Metadata\QueryParameter;
21
use Doctrine\ODM\MongoDB\Mapping\Annotations as ODM;
22
23
#[ODM\Document]
@@ -32,6 +34,7 @@ class ParameterOnProperties
32
34
private ?string $id = null;
33
35
36
#[ODM\Field(type: 'string')]
37
+ #[QueryParameter(key: 'qname', filter: new PartialSearchFilter())]
38
private string $name = '';
39
40
#[ODM\Field(type: 'string', nullable: true)]
0 commit comments