I'm trying to add chat feature to an Android App with Firebase Realtime DB as storage.
My schema is something like this,
conversation: {
conversation_id_generated_by_firebase: {
last_message: {
message: "hehe"
type: "text"
attachments: {0: "url", 1: "url"}
likes: {0: "uid1", 1: "uid2"}
created_at: 1245789898
},
messages: {
m1: {
message: "hehe"
type: "text"
attachments: {0: "url", 1: "url"}
likes: {0: "uid1", 1: "uid2"}
created_at: 1245789898
}, m2: {}, m3: {}, m4: {}
},
read_till: {
uid1: 14567894229
uid2: 14567894228
},
created_at: 1456789329
updated_at: 1456789429
},
}
Now, How can I fetch multiple conversations with ids in one query/call?