JavaScript Query data with Firebase with OrderByChild query data with python,query data with transact sql,query

I have the following data structure

{
  "advisors" : {
    "0ea9bab6-415e-4900-8698-ac03a1ef4518" : {
      "description" : "",
      "price" : 0,
      "title" : ""
    },
    "cc31c353-ca6a-440d-b188-af2016f72aef" : {
      "description" : "",
      "price" : 0,
      "title" : ""
    },
    "d8403e9b-fb74-4425-874f-2d125cd07a68" : {
      "description" : "I know every corner in the arab countries.",
      "price" : "50",
      "title" : "Best guide in the middle east"
    }
  },
  "advisors-countries" : {
    "0ea9bab6-415e-4900-8698-ac03a1ef4518" : {
      "Angola" : "true"
    },
    "cc31c353-ca6a-440d-b188-af2016f72aef" : {
      "Angola" : "true"
    }
  },

I want to make the following query: Give me all the prices of the advisors which have Angola in their list.

I tried the next code for retrieve only the child of Advisor-countries where Angola=true.

var advisors = (ref.orderByChild("Angole").equalTo(true));
$scope.users = $firebaseArray(advisors);
console.log("sync ", $scope.users);

But I'm keep getting null object in the advisors object.

Answer:1

I want to display jquery yearly calendar as shown in image. now I displayed only monthly calendar JSFiddle $(function () { $("#datepicker").datepicker({ changeMonth: true, ...

I want to display jquery yearly calendar as shown in image. now I displayed only monthly calendar JSFiddle $(function () { $("#datepicker").datepicker({ changeMonth: true, ...

I have setup a file using OpenPGP.js which encrypts a message. I need to set the PGP blocks to a javascript variable so i can pass it to the encrypt/decrypt functions. When I paste it in normally it ...

I have setup a file using OpenPGP.js which encrypts a message. I need to set the PGP blocks to a javascript variable so i can pass it to the encrypt/decrypt functions. When I paste it in normally it ...

I am having trouble getting the text 'Vegetable' from the DOM <div class="input-group"> <ul> <li> <span class="input-checkbox"> <...

I am having trouble getting the text 'Vegetable' from the DOM <div class="input-group"> <ul> <li> <span class="input-checkbox"> <...

I have a timer in a template, which updates every second using angular's $interval service. var now = moment(); var startActual = moment(scope.vm.start_actual); var duration = ...

I have a timer in a template, which updates every second using angular's $interval service. var now = moment(); var startActual = moment(scope.vm.start_actual); var duration = ...

  1. using angular material
  2. using angular cli
  3. using angular in visual studio
  4. using angularjs
  5. using angular with django
  6. using angular and react together
  7. using angular material icons
  8. using angular with asp.net mvc
  9. using angular with java
  10. using angular material with bootstrap
  11. using angular with flask
  12. using angular with express
  13. using angular elements
  14. using angular in visual studio 2019
  15. using angular router
  16. using angular with electron
  17. using angular with react
  18. using angular in visual studio code
  19. using angular with .net
  20. using angular directives