Rank 2: Process
I have a collection called "user_personal_info" which has attributes like. $id, name, age, etc. I have another collection called. "user_professional_info" which has attribute like $id, worktype, city_name etc.. I have more similar related collection. the common thing between this collection is that all document in this collection share the common $id.
My question is..
-
how to write query to fetch the doucments who are between the age of 25 to 30 and whose city is "bangalore" and then filter it down further. because all information are in different different collection.
-
how pagination would work in this situations. because with above approach each collection would have its own results sets with paginated data.
What I am basically looking for is chaining of Query between mutliple collection without making multiple api calls. essentialy passing the result of one collection to another to refine my results. currently I believe query chaining between collection doesnt work.
let me know if I am wrong..