Query Count and Random Result

0 votes
So this is a two part question. I have a table of say 1000 documents. One element of each document is "visited". Ultimately, what I want to do is pull down 1 random record where visited = false. My oriignal approach was to count how many records have visited == false. However, the findAllCount does not have a query option. Then I would do a random from 0..


PS. Trying to avoid using Query Find with paging to get the document count. I dont want it to return 1000's of records just to get a count.
asked Apr 5, 2017 in iOS by Christian.Henne (11 points)

1 Answer

0 votes

As of now, you can only find count of all documents. Let me check with the team for the same, I will get back to you as soon as possible.

answered Apr 6, 2017 by rajeev.etc (1,660 points)
Download Widgets
Welcome to ShepHertz Product line forum, where you can ask questions and receive answers from the community. You can also reach out to us on support@shephertz.com