I have the following structure in my Firebase database:
- Items (L1)
  -- key (L2)
    --- itemId (L3)
    --- itemName (L3)
    --- ....
- Orders (L1)
  -- key (L2)
    --- key (L3)
       ---- itemId (L4)
       ---- itemName (L4)
       ---- itemQty (L4)
I have the following index setup for orders.
    "orders": {
      "$custId": {
         ".indexOn" : "itemId",
        "$orderId" : {
          ".indexOn" : "itemId"
        }
      }
    },
I would like to pull all orders for a specific itemId (e.g. 1011). I have tried to leverage the Google dinosaur example. But, I couldn't get it to work perhaps because I have two key levels in my order structure.
I would like to write the request in as a RestAPI such as: var url = 'https://xxxx.firebaseio.com/orders.json?orderBy="itemId"&equalTo=1011';
 
    