case insensitive search
Closed this issue · 1 comments
pyramation commented
I'm using search/filter a bit and seems that by default it's all case-sensitive... is it a simple switch or does this require a PR?
BowlingX commented
You can use the filterToQuery
prop, see https://marmelab.com/react-admin/Inputs.html#usage-11.
const filterToQuery = (searchText: string) => ({
yourAttribute: {
value: searchText,
operator: 'startsWithInsensitive'
},
})
If you have the filter plugin enabled (https://github.com/graphile-contrib/postgraphile-plugin-connection-filter), you can specify the search operator in operator
.