質問

Is it possible to create a model where the relationships are dynamically generated by the application?

I saw the KeystoneJS project that does a nice job of defining the model (see: http://keystonejs.com/docs/database/#relationship-definitions)

But these need to be defined by node, I'm interested in creating these within the application. Are there any ORMs or framework projects that already do that? I I've seen frameworks like the MODxCMS that allow users to create additional fields, by putting everything from the custom (templatevar) values into one table. think mongodb would be great for setting this up without this single table approach.

Any idea how to go about setting this kind of system up? I'm not sure where to start.

役に立ちましたか?

解決

I guess mongoose might help you here. And you may want to have a look at mongo-relation too.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top