Sure thing.
The collections individually, (Customers and Subscriptions) are accessible and display everything right. Only the references don’t work, in the sense that when I navigate to a customer’s subscriptions, it’s an empty list, even though in the below screenshot you can see that the customer has a bunch of subscriptions.
Customer Schema
const schema = mongoose.Schema({
subscriptions: [{ type: mongoose.Schema.Types.ObjectId, ref: 'subscriptions'}]
})
There is no belongsTo
in the relationship.