You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
readonly
aggregate data from multiple data sources based on model relations
focus on read performance (and local caching config?)
able to be created without DBAs / sql / etc
avoid joins and slow SQL operations
query the aggregated data
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.
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 CODEOWNERS file at the top-level of this repository.
Activity
bajtos commentedon Jan 2, 2014
👍
seanbrookes commentedon Jan 2, 2014
Sounds like a good idea but I would suggest a slightly different name to avoid confusion with front-end views. Maybe DataViewModel or something.
bajtos commentedon Jan 2, 2014
How about ClientModels, MobileModels, FrontModels?
violet-day commentedon Feb 10, 2015
Great!
seanbrookes commentedon Feb 10, 2015
I like ViewModel, ViewDataModel
On Tue, Feb 10, 2015 at 5:55 AM, Nemo notifications@github.com wrote:
StrongLoop http://strongloop.com/_\* makes it easy to develop APIs
http://strongloop.com/mobile-application-development/loopback/ in Node,
plus get DevOps capabilities
http://strongloop.com/node-js-performance/strongops/ like monitoring,
debugging and clustering*._
dregre commentedon Nov 29, 2015
+1
stale commentedon Aug 23, 2017
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.
stale commentedon Sep 6, 2017
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
CODEOWNERSfile at the top-level of this repository.