Searching for Enum type fields

I just tried to search for vehicle Enum fields and found that you seem only to be able to get a result if your search string matches exactly an Enum value, otherwise you get a 400 error.

E.g.:

query: { “engineType”: { _eq: “GASOLINE”}} → gives the expected result

query: { “engineType”: { _eq: “GAS”}} → 400 error; expected: empty result

query: { “engineType”: { _like: “%S%”}} → 400 error; expected: all vehicles with an engine type designation (Enum value) that contains ‘S’

Is that the intended behaviour or is this a bug?

That’s intended behaviour: enums and also ids cannot be queried with _like. We should add it to the docs - thanks :slight_smile: