The use-case is the following:
In my app, I made a survey builder using autoform and simple schema. The output of this form builder is a document of my “surveys” collection having fields like ‘title’, ‘createdAt’, etc and a blackbox field: schema.
This schema is then used to create a dynamic collection to collect the survey results, again using autoform.
I know this seems weird but I didn’t want to store the results in the survey document as I read in the mongo documention that document arrays that grow a lot are not really recommended. I understand I will NOT have millions of survey results but I thought this to be the best practice for this use case (mongo noob talking).
I was also thinking to change my form builder to give it a broader use: some kind of entity creation for a CMS. (I plan to release the package on atmosphere as soon as I am satisfied with my code, it is a little bit messy right now as I was experimenting with object heritage)
If you could recommend a better pattern for this, I would be ever so grateful.