migration from backendless 3 to backendless 4(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
Post a Comment