-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Model not globally exposed #27
Comments
Models are not expose globally, only trails model class is exposed globally if I'm not wrong |
It's this.app.orm.User right ? Should work normally |
@jaumard |
Test are still passing on Travis for the v2 version, maybe you miss to export your User model on the index.js file ? Or something like this ? Can you give more info on your use case please. As I don't know mongoose I may not be very helpful on this ^^ |
@Nishchit14 Did you fix issue ? If not could you provide us with a bit more details ? |
@konstantinzolotarev But |
Closing this as it fix :) @Nishchit14 I think the other problem come from the generator not this repo |
@konstantinzolotarev @jaumard
In version 2.0.0
this.app.orm.User
andUser.
both are undefined :(It is not exposing
Model
globally as per Trails's v2-latest standards.The text was updated successfully, but these errors were encountered: