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
in below code, I want to be able to select a specific document property, so that only that is retrieved over the network. My primary goal is to reduce the data transferred through network.
final docRef = FirebaseFirestore.instance
.collection('collection_name')
.where('field1', isEqualTo: value)
_**// .select(['field2']); ----- uncommenting this line is throwing error.**_
_subscription = docRef.snapshots().listen(updateResultsToUI);
it seems selecting specific properties is not allowed in flutter. Is there a reason for that ? or am i missing something here ? Please advise.
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
-
in below code, I want to be able to select a specific document property, so that only that is retrieved over the network. My primary goal is to reduce the data transferred through network.
Beta Was this translation helpful? Give feedback.
All reactions