These are chat archives for Automattic/mongoose
mongoclient, remove the indexes and re-create them by calling ensureIndex or rely on the default Mongoose behavior (index on startup).
pricefield while create the object from the model, no validation error is thrown based on the childSchema required fields
Hey fellas, i'm going my first steps with mongoose and node. Might anyone answer a question i have? Its about data modelling. I have 3 Things i need to store in my db. First is like "the product". Then i have to 2 different schema of forms that a user may attach to this product.
Later i'll have to add querys that show all products or all forms of type 1 or 2.
Is it Is it appropriate to store anything in one schema or do i create 3 schemas, 1 schema and 2 childschema? Thanks for any help i'm kinda stuck since i dont really know how to put my question into "google length"..