TypeError: Invalid schema configuration: Child is not a valid type at path name. See http://bit.ly/mongoose-schematypes for a list of valid schema types.
Pretty sure something needs to be different in the require statement but not quite sure what it is.
I have 2 mongo models defined in 2 different files (generated using
hpal make model
like somodels/parent.js
models/child.js
What I'm trying to do is define
child
as a sub-document array onparent
but it throws an errorPretty sure something needs to be different in the
require
statement but not quite sure what it is.