Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why are we extending Mongo collection, what's that for? #12

Open
tomRedox opened this issue Mar 10, 2016 · 6 comments
Open

Why are we extending Mongo collection, what's that for? #12

tomRedox opened this issue Mar 10, 2016 · 6 comments
Labels

Comments

@tomRedox
Copy link
Owner

I copied that code from the MDG examples, but what is the reason for doing it? Remove it if it's not doing anything.

Abhi's comment: "I don't think you should extend Mongo.Collection. You gain nothing. And may confuse people who don't know what his new collection generator is."

@tomRedox tomRedox changed the title Do we need to extend Mongo collection, what's that for? Why are we extending Mongo collection, what's that for? Mar 10, 2016
@serkandurusoy
Copy link

They just use that as a development pattern to organize important data mutation methods under the collection's namespace.

It may be desirable for large applications or for developers who are used to rails/java/.net style programming with orm's.

In fact, I'd highly suggest you take a look at astronomy for your model layer. I think astronomy is better suited towards line of business apps.

@tomRedox
Copy link
Owner Author

Thanks @serkandurusoy, I will definitely look at astronomy, it's on the list. I wanted to have done the work 'long-hand' first to really understand what's going on under the hood before moving onto an abstraction. I'm a .net programmer by day, so I'm completely used to working with an ORM abstraction.

@serkandurusoy
Copy link

Cool! Line of business apps is kind of "my thing" and I am still developing them on Blaze and wanting to move on to React, so this repo is very valuable to me. So let me know if there's anything I can do to help.

@tomRedox
Copy link
Owner Author

Great stuff, will do

@AnnotatedJS
Copy link

I ditto serkandurusoy's previous comment. I have my meteor-react-start-app and was also 'back-stage' working on extending it with 'line of business' features and specifically a solution for a more-or-less normalized many-to-many relationship, in my case User --Membership--Group.

See also my GreatAlbums app for my previous blaze implementation of Line Of Business features.

@tomRedox
Copy link
Owner Author

@AnnotatedJS: Thanks René, much appreciated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants