Open ramusus opened 9 years ago
same issue
Any fix or workarounds for this yet?
I just ran into this and the fix is to get the capitalization correct. You registered your mongo models as 'User' and 'Article', but when you exported them for formage in index.js you used lowercase 'user' and 'article'.
You should change it to:
'use strict';
module.exports.User = require('./user.server.model');
module.exports.Article = require('./article.server.model');
I'm trying to register default users from the project meanjs.org. But if Article has reference to User server fault with error:
I registered models by this snippet:
And put ./app/models/index.js with:
Changing models order doesn't help. Where I'm wrong?