0

I am trying to get photos of the following people in newsfeed. I am using Google Cloud Firestore.

My db struture is:

Users -> userDocs -> following -> followingUserDocs
                 -> photos -> photosDocs

My concern is, If I follow 50 people then I need to get the posts which is posted by the 50 people sorted by created time and the limit of 10.

Doug Stevenson
  • 297,357
  • 32
  • 422
  • 441
c0d3r
  • 103
  • 1
  • 5
  • What's the question? – Alex Mamo Jun 19 '19 at 06:47
  • @AlexMamo https://stackoverflow.com/questions/56661462/perform-in-query-in-google-cloud-firestore – c0d3r Jun 19 '19 at 07:12
  • So... where's the code you've attempted? We would need to take a look at that to see what the issue is. Probably need to get a better description of your Firebase structure as well. Please take a moment and review [How do I ask a good question?](https://stackoverflow.com/help/how-to-ask) and [How to create a Minimal, Complete, and Verifiable example](https://stackoverflow.com/help/mcve). To get your Firebase structure, use the Firebase console->Export JSON and copy and paste a snippet of your structure. See [images and links are evil](http://idownvotedbecau.se/imageofcode) – Jay Jun 19 '19 at 17:42

0 Answers0