2

I have the following structure in Firebase.

user
    |- 111
          |-name: 'ABC'
    |- 222
          |-name: 'XYZ'
    |- 333
          |-name: 'AMN'

Now can I write a query in Angular2 in Ionic3 which will only give the users whose name contains letter 'A' or I have to fetch the entire list and filter.

KENdi
  • 7,576
  • 2
  • 16
  • 31
Tapas Mukherjee
  • 2,088
  • 1
  • 27
  • 66
  • Firebase Database queries cannot filter for values that **contain** a certain substring. They can only do **starts with**. Also see https://stackoverflow.com/questions/22506531/how-to-perform-sql-like-operation-on-firebase – Frank van Puffelen Aug 25 '17 at 05:56
  • see https://stackoverflow.com/questions/45874050/nested-list-query-in-firebase-using-ionic3 – mohamad rabee Aug 25 '17 at 08:49
  • Hi Frank, I think the function you want to say in startAt() but this one does not really give a result which starts with some character. Hi Mohamad, You have entered this thread link by mistake I think. Please provide the correct link is possible – Tapas Mukherjee Aug 26 '17 at 04:58

0 Answers0