Hello I am trying to pull multiple objects with a variety of query searches and I am wondering how to do that without making multiple "orderBy" points of entry and equal to points of entry.
here is the data I have
    {
      Item: {
        IDNumber1: {
          productDepartment: Cullinary,
          productStore: JCPenny
        }
        IDNumber2: {
          productDepartment: Cullinary,
          productStore: Macys
        }
        IDNumber3: {
          productDepartment: Home,
          productStore: JCPenny
        }
        IDNumber4: {
          productDepartment: Ties,
          productStore: JCPenny
        }
        IDNumber5: {
          productDepartment: Cullinary,
          productStore: Macys
        }
        IDNumber6: {
          productDepartment: Cullinary,
          productStore: Dillards
        }
        IDNumber7: {
          productDepartment: Ties,
          productStore: Dillards
        }
      }
    }
If I wanted to pull all the objects that contain Macys Ties and Dillards so different object Items like in this case productStore and productDepartment I was wondering how to orderByChild the variety of Item names and equal it to the data that I am trying to pull.
    const query = dataFirebase.ref("jobs");
    query.orderByChild('productName').equalTo('Home').on('child_added', function(snapshot) { 
        var test = snapshot.val();
        console.log(test)
  }
I am wondering if it is a good Idea to use something like
    const query = dataFirebase.ref("jobs");
    query.orderByChild('productName','productDepartment').equalTo('Home','Dillards').on('child_added', function(snapshot) { 
        var test = snapshot.val();
        console.log(test)
  }