Start a new topic

Pull does not save array

Object Class

class Object: Entity {
    dynamic var array:  Array<Any>?
}

 

Kinsey class 

lazy var dataStore: DataStore<Object>! = {
        return DataStore<Object>.collection(.sync)
}()

// Pull
dataStore.pull() { (objects, error) -> Void in
            if let objects = objects {
                //succeed
               for object in objects {
                      // SHOWS object. array
               }
            } else {
                //fail
            }
}

// Find
dataStore.find() { (objects, error) -> Void in
            if let objects = objects {
                for object in objects {
                   // DOES NOT SHOW object.array, i.e. object.array is nil
                }
            }
            else {
                //fail
            }
  }
 

  I'm guess PULL does not save arrays?

1 Comment

Brian,

This is a known issue and engineering is working on it. I will update you once I have more information from them.

Thanks,
Pranav
Kinvey Support
MLIBZ-1587

 

Login or Signup to post a comment