userId
and an email
. Likewise, we have a collection of Transactions where each transaction has a userId
and an amount
.userId
fields can be used to connect records in the two collections, but it's an informal connection defined by your application logic, not by the database itself.