These are chat archives for Automattic/mongoose

15th
Jul 2015
Dang Hong Thanh
@danghongthanh
Jul 15 2015 06:42
does anyone know how to fit mongoose model with http://jsonapi.org/?
bruce
@sqram
Jul 15 2015 22:47
Starting with mongodb/mongoose. Confused abotu schemas. The quickstart on the site creates a kitty schema. Will that schema be created each time the script is ran? if so will i lose the data already stored?
Luke A. Greenleaf
@gishmel
Jul 15 2015 23:13
so all schemas represent is a document template that is validated using special mongoose syntax and sent to mongodb with some special techniques used for storage and return
so no the act of saving a schema is to save that document to mongodb
where it will reside until destroyed or updated replacing with the updated document