This is currently what you will need to do manually. You can create an RLMArray by combining your two results.
We discuss the merge / merge method later in the roadmap for RLMO objects of the same type.
Any bit you can provide will help us understand use cases and potentially influence api design
While they are of the same type, a general example is given here.
let currentTask = Task.objectsWhere("name = %@", "First task").firstObject() as Task let currentRecords = currentTask.records let arrayOfRecords = RLMArray(objectClassName: "Record") arrayOfRecords.addObjects(currentRecords) let futureTask = Task.objectsWhere("name = %@", "Future task").firstObject() as Task let futureRecords = futureTask.records arrayOfRecords.addObjects(futureRecords)
source share