SkygearIO / skygear-SDK-Android

Skygear Android SDK
Other
12 stars 36 forks source link

Feature Request: Inner Query and Multi-level Include #103

Open seventhmoon opened 7 years ago

seventhmoon commented 7 years ago

Please consider enhance the Query feature by providing similar functions as Parse. https://parseplatform.github.io/docs/android/guide/#relational-queries

(I know I can do it by Lambda functions......)

chpapa commented 7 years ago

@seventhmoon Thanks for the suggestion. I have added Product Meeting Label so our dev team would discuss it in next product meeting / iteration of development.

Would love your input on another idea too -- our team have thought about an idea of "saved_query", it works like you can have a set of pre-defined SQL Query on server side with variables, and client side can supply the variables so server side can return the objects / result.

Think of it as a shortcut for lambda functions.

Do you like this idea more or a Relational Query feature?

seventhmoon commented 7 years ago

I am thinking, if a query support subquery could also make subquery support sub-subquery. So, it will be recursion like, running the most inner query first, and pop back to the first level.

Isn't this approach more generic? (however, saved query can run more complex query)