You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**Note** The fields you are querying must be setup to use the postgresql array data type - see [Defining models](#defining-models) above.
652
+
653
+
Assuming a model such as this:
654
+
655
+
```ts
656
+
@model({
657
+
settings: {
658
+
allowExtendedOperators:true,
659
+
}
660
+
})
661
+
classPost {
662
+
@property({
663
+
type: ['string'],
664
+
postgresql: {
665
+
dataType:'varchar[]',
666
+
},
667
+
})
668
+
categories?: string[];
669
+
}
670
+
```
671
+
672
+
You can query the tags fields as follows:
673
+
674
+
```ts
675
+
constposts=awaitpostRepository.find({
676
+
where: {
677
+
{
678
+
categories: {'containsAnyOf': ['AA']},
679
+
}
680
+
}
681
+
});
682
+
```
683
+
600
684
### Operator `match`
601
685
602
686
The `match` operator allows you to perform a [full text search using the `@@` operator](https://www.postgresql.org/docs/10/textsearch-tables.html#TEXTSEARCH-TABLES-SEARCH) in PostgreSQL.
0 commit comments