sayden / relay-mongoose-example

An example Relay application
Other
58 stars 8 forks source link

Separated data and models files #2

Open sayden opened 8 years ago

sayden commented 8 years ago

To have a huge schema is not very nice. A better file structure should be achieved to improve quality and comprehension like in this graphql example. https://github.com/sayden/graphql-mongodb-example/tree/master/Models

But it has provoque cyclic dependencies problems in the past when achieved this way and it seems that Babel couldn't manage them well.

ghost commented 8 years ago

Hey sayden, any updates on these cyclic dependencies problems? :)