Hey @aubergine - try leaving out the *
's, e.g.
query.data.myCustomField.$regex="searchText"
E.g. you can query all of our docs that have the text “Builder” in them with this
You can make this a little nicer too by making the search case insensitive by also adding query.data.myCustomField.$options=i
You can find more info about mongodb’s regex operator here
Steve