function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Vladimir BessonovVladimir Bessonov 

how to query objects in ios sdk?

I am trying to write my own app using iosnative template
When I query Account, everything works fine,
I created my own object Office__c. 

when I replace Account for Office__c - they have the same field. Name and ID - it is not working 

Where I can find detailed examples? I was trying to read docu for ios sdk. no luck. 
func fetchOffices() {
        syncTaskCancellable = syncManager?.publisher(for: "syncDownOffices")
            .receive(on: RunLoop.main)
            .sink(receiveCompletion: { _ in }, receiveValue: { _ in
                self.loadOfficeFromSmartStore()
        })
        self.loadOfficeFromSmartStore()
    }
    
    private func loadOfficeFromSmartStore() {
         storeTaskCancellable = self.store?.publisher(for: "select {Account:Name}, {Account:Id} from {Account}")