javascript - firebase - filter on not equal to -
i have firebase database retrieve items except items having specific value. function notequalto(), say.
firebase.database() .ref().child('/snippets/') .orderbychild('description') .notequalto('dontdisplay') .on('value',function(snap) { // working right snapshot } this not work since notequalto not function. tried passing function equalto doesn't work either:
firebase.database() .ref().child('/snippets/') .orderbychild('description') .equalto(function (descr) { descr !== 'dontdisplay'; }) .on('value',function(snap) { // working right snapshot } what's right way filter on items not having description 'dontdisplay'?
Comments
Post a Comment