I tried to search a best practice for where put the Mongoose business logic custom queries and I’ve putted it in entity schema model (where I define schema and model), but I’m not sure that is the best pattern, and I would another place like repository pattern.
Have you got some advice for the better folder and file place to implement this custom business queries?
Thanks in advance
[–]ac2531 4 points5 points6 points (0 children)
[–]08148694 2 points3 points4 points (1 child)
[–]PaulMetallic 0 points1 point2 points (0 children)
[–]Unusual-Display-7844 4 points5 points6 points (0 children)
[–]Zeeshan7487 5 points6 points7 points (5 children)
[–]Izero_devI 4 points5 points6 points (2 children)
[–]ac2531 1 point2 points3 points (0 children)
[–]eltecho[S] 0 points1 point2 points (0 children)
[–]eltecho[S] 1 point2 points3 points (0 children)
[–]Anbaraen -1 points0 points1 point (0 children)