progressive-amaranthP
Refine4y ago
5 replies
progressive-amaranth

using array of fields in setFilters to search

I want to pass multiple fields in the setFilters, to search the combined first and last name of any person...

onChange={(e: any) =>
setFilters([
{
field: "first_name" + " " + last_name",
value: e?.target?.value,
operator: "startswith",
},
])
}

how can I implement it ??

@Omer
Was this page helpful?