iOS find query never returns

Hello, I am trying to following with swift:

                let backendless = Backendless.sharedInstance()
                let dataStore = backendless.persistenceService.of(Restaurant)
                
                dataStore.find(
                    { (collection) -> Void in
                        
                        let restaurants : [Restaurant] = collection.data as! [Restaurant]
                        
                    }) { (fault) -> Void in
                        
                        NSLog("Error!")
                }

None of the completion handlers are called. I am trying to get all the objects in my database. Documentation again lacks example. What should I be doing?

Hi Balint,

Please take a look at this article, there is a Swift example there: https://backendless.com/feature-16-data-retrieval-api-how-to-load-objects-from-an-mbaas-storage/

Here’s a directory of all articles in that series: https://backendless.com/blog-a-feature-a-day-challenge/

Cheers,
Mark