I have 2 tables:
Table Question:
questionId, questionContent, chapterId
Table Choice
choiseId, choiceContent, questionId
The input is chapterId
so I want to get an array of object that contain all questions and options that matched to that question. I am using Realm database and RxSwift. How can I do this. Thanks you!
Realm is NoSQL database, Joins are not supported. In short, You cannot query on multiple tables using a single query call. Instead, you should use Relationships
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.