Backendless Support
 
Answered

Migration to Backendless 4.0 guide / getCurrentPage

Hey, I am working with Backendless 4.0. I just wanted to know if you will be publishing a guide to migrate the 3.0 SDK to 4.0.

Also, how would we write these lines of code using the 4.0 iOS SDK. We are coding in swift. I am getting an error for the getCurrentPage function.

  1. let whereClause = "retailerName = '\(retailerString)'"
  2. let dataQuery = DataQueryBuilder()
  3. dataQuery?.setWhereClause(whereClause)
  4. let retailer = backendless?.data.of(RetailerPage.ofClass()).find(dataQuery)
  5. let actualRetailerPage = retailer?.getCurrentPage() as? [RetailerPage]

Leave a Comment

Comments (2)

photo
1

Hi Nevin,

We already published the migration guide for Android, JS and REST. Right now we're working on the docs for iOS, so it will be available soon.

Regards,

Mark

photo
1

As for getCurrentPage(), that method is gone in 4.0. Please see the doc on data paging: https://backendless.com/docs/ios/doc.html#data_data_paging