migration from backendless 3 to backendless 4(swift code) -


swift code

when run code shown in picture above, shows following error:

value of type '[any]' has no member 'data'

how can fix error? help!

new api returns [any]? instead of backendlesscollection?:

// v3 let withuser = users!.data.first as! backendlessuser // v4 let withuser = users!.first as! backendlessuser 



complete migration guide: migration 3.x 4.x

v3.0 = sdk implementations use backendlesscollection class represent collection of data backend.

v4.0 = backendlesscollection eliminated. instead backend returns array of objects ([any] in swift)


Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -