-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
ViewModels #114
Comments
👍 |
Sounds like a good idea but I would suggest a slightly different name to avoid confusion with front-end views. Maybe DataViewModel or something. |
How about ClientModels, MobileModels, FrontModels? |
Great! |
I like ViewModel, ViewDataModel On Tue, Feb 10, 2015 at 5:55 AM, Nemo [email protected] wrote:
StrongLoop http://strongloop.com/_\* makes it easy to develop APIs |
+1 |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue has been closed due to continued inactivity. Thank you for your understanding. If you believe this to be in error, please contact one of the code owners, listed in the |
ViewModels
We should support some form of ViewModel. A very simple implementation could depend explicitly on MongoDB. I'm struggling to come up with the exact js API, but the features would be:
A real use case for this is illustrated in the access control example app. The client currently makes a single http request and the server calculates the account balance on demand.
With a ViewModel, the app would make the request to the ViewModel which would be backed by an aggregation (including caluclations) of all the transaction data.
The text was updated successfully, but these errors were encountered: