Support Topics Documentation Slack YouTube Blog

Database Object Retrieval - Return Value from find() function?

Is it possible to have the function find(queryBuilder: DataQueryBuilder, responseHandler: (([[String : Any]]) -> Void)!, errorHandler: ((Fault) -> Void)!) return a value from the responseHandler?

Hello @Seth_Goodwin,

Swift-SDK provides only async methods and you can manage the return logic on your own. E.g. you can use PromiseKit or dispatch groups or semaphores etc.