I’m trying firebase database and one question comes up.
Before posting, I read this, this, and this github but not figure how to do this on Android (if it's a possible to do this on js, why not Java?)
I have a note with a GUID on the key, and I have two timestamps properties, startTime and endTime. I get the actual timestamp from user, and I need to retrieve all notes where the user timestamp is between startTime and endTime.
Here is an entity sample on firebase:
notes:
{
"notes": {
"aedbd23a-ca8e-4160-88a0-1d68f92b34cf": {
"description": "Note test",
"startTime": 1490353200,
"endTime": 1490396400
}
}
}
On plain SQL I can achieve this doing select * from notes where userTime between startTime and endTime. How can I achieve this on firebase?