pentacent / keila

Open Source Newsletter Tool.
https://keila.io
GNU Affero General Public License v3.0
1.38k stars 69 forks source link

How to filter contacts by custom data field #280

Closed dompie closed 6 months ago

dompie commented 6 months ago

Hello, I try to filter contacts by custom data using the /api/v1/contacts endpoint. I have a contactType custom data field.

I tried the following filter queries:

{"contactType":{"$like":"%"}}
{"data.contactType":{"$like":"%"}}
{"data": {"contactType":{"$like":"%"}}}
{"$and": {"data": {{"contactType":{"$like":"%"}}}}

But for every of the above queries I get an Internal server error.

wmnnd commented 6 months ago

I think this was answered by my comment in #279 :blush:

I’ll take a look though if there are cases where a valid filter might still make the UI break.