firebase queries ionic2 / orderbychild together with orderbyvalue

1

hi I want to make a query on ionic 2 from firebase, it already brings me the data with orderbychild but when I try to put orderbyvalue send me error

enter image description here

  user:  FirebaseListObservable<any>;

this.user = this.database.list('/agenda');
this.datos = this.database.list('/solicutud', {
  query: { 
    orderByChild: 'usuario', 
    equalTo: '[email protected]',
  } 
}); 

and I get an error when I try to put

this.user = this.database.list('/agenda');
this.datos = this.database.list('/solicutud', {
  query: { 
    orderByChild: 'usuario', 
    equalTo: '[email protected]',
    orderByValue: 'status',
    equalTo:0
  } 
}); 
    
asked by shirahama 10.04.2017 в 00:12
source

0 answers