rom-rb / rom-mongo

(Looking for a maintainer) MongoDB support for rom-rb
https://rom-rb.org
MIT License
33 stars 21 forks source link

RomStruct should have dynamic fields schema #18

Open mohamedelfiky opened 7 years ago

mohamedelfiky commented 7 years ago

I working with ROM-mongo on a mongo DB that have dynamic fields on each collection, I defined a schema for the collection, but ROM struct raises an exception when trying to instantiate a new struct for document with a missing field. I think the mongo schema should be dynamic and accept missing fields.