Is it possible to order by 2 different params in firebase REST API and what's the correct api call should for that:
I need to get posts by userId and category. What's the correct endpoint should be for that?
FIREBASE_URL/?orderBy="userId"&orderBy="category"&equalTo="${userId}"&equalTo=${category}`;
{
/* Visit https://firebase.google.com/docs/database/security to learn more about security rules. */
"rules": {
".read": "true",
".write": "auth != null",
"todos": {
".indexOn": ["category", "userId"]
}
}
}