XENON1T/cax

Allow arbitrary queries via web API

Opened this issue · 3 comments

Can we have it so the web API allows arbitrary mongo queries? This greatly simplifies processing and lightens the load on Mongo if we do it correctly. For example:

https://gist.github.com/ershockley/0fa384dd4ed36f159cdd754c9aac388f

is #38 supposed to solve this?

Nah, this doesn't exist at all. It's more an API limitation but due to lack of interest (#38 still open) I stopped developing this aspect of the API.

I'm not sure how 'arbitrary' you mean exactly, but so far I haven't had any problem doing complicated mongo queries. Here's an example

In OSG processing we can pass a query like this, which is queried via API here by calling this function.