react-native-firebase . 我需要字段(DocumentReference)位于所提供数组中的所有文档:
react-native-firebase
const subscriber = firestore() .collection('strategyCounts') .where( 'strategy', 'in', user.strategies.map(strategy => { return strategy.path; }), ).onSnapshot(...)
user.strategies ["/strategies/id", "/strategy/id2"]
user.strategies
["/strategies/id", "/strategy/id2"]
DocumentReference 数组中的对象。比如:
DocumentReference
user.strategies.map(strategy => { return firestore().doc(strategy.path); }),
user.strategies.map(strategy => firestore().doc(strategy.path)),