Express middleware using loopback 4 models #7594
Unanswered
BillyCottrell
asked this question in
LB3 Migration
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi there,
I am currently developing a service that is responsible to communicate with Microsoft Graph, which uses passport to serialize and deserialize the user. Problem is that I need to find the user from my MongoDB database, in loopback 3 this was possible by doing "server.models.User".
What about loopback 4, how can we access this model, do I need to do a call to one of my loopback paths or can I easily access this model using a different method?
Any ideas on this?
Thanks in advance!
PS: This is the code I'm trying to convert from loopback 3 to loopback 4:
Beta Was this translation helpful? Give feedback.
All reactions