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

Add example of facade use case #39

Open
gillchristian opened this issue Jul 3, 2017 · 2 comments
Open

Add example of facade use case #39

gillchristian opened this issue Jul 3, 2017 · 2 comments

Comments

@gillchristian
Copy link
Collaborator

As stated in #38 an example of the facade use cases would be helpful.

@ndelvalle
Copy link
Owner

the facade pattern is designed to be a wrapper around mongoose, so all things related to the DB like populating, querying, sorting mongoose docs should be here, note that you can reference other models from each model if necessary. I will update the example project to have some descriptive facade methods.

@andy2ndlife
Copy link

I am new to Facade and Mongoose. Would you give me a code sample of how to validate a collection before creating it?

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

No branches or pull requests

3 participants