You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using Firestroe to store different "games" that are scouted. I want to be able to get all of the documents that were scouted on the same team. My query doesn't work when I add query.where("team_num", FirestoreQuery.OPERATOR.EQUAL, 1)
It gives me the error "Trying to return a value of type Nil from a function which the return type is Array"
When i remove this line, my code works (except for the fact that I get all the data, not just one team's data)
These are pics of my firebase data that im using to test this
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm using Firestroe to store different "games" that are scouted. I want to be able to get all of the documents that were scouted on the same team. My query doesn't work when I add
query.where("team_num", FirestoreQuery.OPERATOR.EQUAL, 1)
It gives me the error "Trying to return a value of type Nil from a function which the return type is Array"
When i remove this line, my code works (except for the fact that I get all the data, not just one team's data)
These are pics of my firebase data that im using to test this
Beta Was this translation helpful? Give feedback.
All reactions