mekanika / qe

Query envelope (Qe) specification
2 stars 0 forks source link

Is deep-match ("field.sub.x") support desirable? #11

Open cayuu opened 9 years ago

cayuu commented 9 years ago

Regarding match and its "deep match" support: https://github.com/mekanika/qe#deep-matches

Supporting "deep matching" means Adapters parsing every key for . and then running something like unflatten(obj) on it.

In practice this requires some testing in an adapter (probably either mongo or fixture). Make tickets and test pls.

cayuu commented 9 years ago

FWIW some adapter drivers MAY support this out of the box. There is no reason for the spec to disallow this behaviour. What would be helpful is a flag (or series of flags) to indicate deep-match support on the adapter in #14.

cayuu commented 9 years ago

Which leaves the question of whether "dot.separators" are the best option for specifying a deep-match. Leaving this open until that is locked.