feat: implement the search query
This commit is contained in:
parent
163ba476f2
commit
628a85cc01
|
@ -552,6 +552,22 @@ export class StrapiService {
|
|||
limit: limit,
|
||||
},
|
||||
filters: {
|
||||
or: [
|
||||
...(query && query?.length > 0
|
||||
? [
|
||||
{
|
||||
title: {
|
||||
containsi: query,
|
||||
},
|
||||
},
|
||||
{
|
||||
body: {
|
||||
containsi: query,
|
||||
},
|
||||
},
|
||||
]
|
||||
: []),
|
||||
],
|
||||
and: [
|
||||
...(filters ? [filters] : []),
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue