In my React Native project, I am utilizing Firebase Firestore as the backend database. I have successfully retrieved data from the database using the following code:
unsubscribe = firebase.firestore().collection('messages').where('user', "==", this.props.user.uid).onSnapshot(this.onCollectionUpdate)
However, I am now faced with the challenge of retrieving data where the 'user' field is an object with a nested field of id. How can I achieve this?