alevy/hails — comment on commit 4430d0fadbfab45733a57046a45ed607ea602be2
File: Hails/Database/MongoDB/TCB/Query.hs line 86
By deian:

I think doing a white list here is a better idea. Specifically,

mapM (\(k := v) -> case v of
(BsonVal _) -> return ()
_ -> when (k `elem` srchbls) $ throwIO InvalidSearchableType