rayman1104 / ra-data-nestjsx-crud

Data provider which integrates React Admin with NestJS CRUD library
MIT License
100 stars 27 forks source link

Feature: inline filter operator #38

Closed ockam closed 1 year ago

ockam commented 1 year ago

The PR makes 2 changes:

  1. change the default operator to $contL (case insensitive contains)
  2. allow the use of a semi-colon to insert a custom operator, as in: <SearchInput source='name:$cont' />

The use of a semi-colon is necessary because the use of double-pipes (as suggested in #26) was preventing the field from working properly in latest version of React-Admin (v4).

Note: since there is no tests and I”m new to React-Admin data provider, I don’t know if these changes can have side-effects I haven’t foreseen.

rayman1104 commented 1 year ago

Thanks! Published.