Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Mongoose Schemas Not Created #983

Closed
@iantanwx

Description

@iantanwx

Hello, I've been using this generator to write a CMS. Unfortunately, it seems that Mongoose will not initialise any of the schemas I've created, except for the schema in seed.js. I've tried to initialise a schema in seed.js to test, and even that schema doesn't get initialised. The only schema getting initialised seems to be the Users schema.

The really odd thing is that saving Users from the front end with $resource works, but saving any other type of document in any other collections simply doesn't insert anything, and doesn't throw any errors. All HTTP response codes are also good. I'm really not sure what could be causing this issue.

I suspect it's a connection problem, but can't quite figure out what it is. I am doing this in dev environment with safe: set to true.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions