rayman1104 / ra-data-nestjsx-crud

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

Set filter conditional to equals for UUID strings #35

Closed gregsj closed 2 years ago

gregsj commented 2 years ago

The existing data provider logic makes the conditional for all non-numeric string $cont. This results in a failure for any value that is UUID when using a Postgres data as Postgres doesn't support LIKE %${UUID}%.

I've added additional logic to make the conditional $eq for all string that matches regex for a UUID.