feat: implement the search query

This commit is contained in:
jinhojang6 2024-03-04 20:26:24 +09:00
parent 163ba476f2
commit 628a85cc01
No known key found for this signature in database
GPG Key ID: 1762F21FE8B543F8
1 changed files with 16 additions and 0 deletions

View File

@ -552,6 +552,22 @@ export class StrapiService {
limit: limit,
},
filters: {
or: [
...(query && query?.length > 0
? [
{
title: {
containsi: query,
},
},
{
body: {
containsi: query,
},
},
]
: []),
],
and: [
...(filters ? [filters] : []),
{