Posts by Diego Sabino • 9 points
1 post
-
0
votes0
answers21
viewsQ: Mongoose - Filter by foreign ownership
Good afternoon, I need to know how to do it, using Mongoose, to filter a model from a foreign property. For example: const Usuario = new Schema ({ nome: { type: String, required: true }, cargo: {…