我想要创建一个云功能,让用户在一定的条件下读取另一个用户的一些用户信息。
例如:
const user1 = ??? // user1 is the current user
const user1Data = await firestore().collection('Users').doc('user1.uid').get()
const user2 = ??? // user2 is the user whith user2.uid == user1Data.partnerUid
const user2Data = await firestore().