0

I'm having a Firebase database structure like following.

enter image description here

I need to write a Firebase query to retrieve "my_songs" if my search text contains in "artists" array.

2
  • Please avoid arrays in Firebase. See my answer to this question as well as another question. Oh and yet another answer. As you can see there is a lot of great information here - it just requires some research. Commented Mar 19, 2017 at 12:44
  • @Jay You are right. I contacted the Firebase support about this matter. As they say for now, they do not have a direct support for a "contains" or "like" function in the Firebase query. Solution is change my data structure. Denormalization of data to avoid creating complex queries and to make the process as easy as possible. Commented Mar 20, 2017 at 14:24

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.