Open daa opened 2 years ago
When field being search is not of String type but similar (citext, for example) it's desirable to use _ilike filter but the code constructing filter doesn't use constructed pattern in this case - it uses just value: https://github.com/hasura/ra-data-hasura/blob/b0f8cabdf2a0a79db7056b049128d0e7c01899de/src/buildVariables/buildGetListVariables.ts#L90-L109
_ilike
So when I set up filter using TextInput with source=field@_like for citext column actual search is performed by value but not %value%.
TextInput
source=field@_like
citext
%value%
When field being search is not of String type but similar (citext, for example) it's desirable to use
_ilike
filter but the code constructing filter doesn't use constructed pattern in this case - it uses just value: https://github.com/hasura/ra-data-hasura/blob/b0f8cabdf2a0a79db7056b049128d0e7c01899de/src/buildVariables/buildGetListVariables.ts#L90-L109So when I set up filter using
TextInput
withsource=field@_like
forcitext
column actual search is performed by value but not%value%
.