Is there a bettery way to work with nested(associated) models in Sails JS?

前端 未结 2 896
忘掉有多难
忘掉有多难 2021-01-17 03:43

I\'ve connected my SailsJs app to a Mongodb database. I\'m working on an analytic application. These are the major models in my application:

User

2条回答
  •  一个人的身影
    2021-01-17 04:42

    Right now there is a hook that allows you to do that. It is changing waterline with Offshore. Offshore is extended fork of Waterline with deep populate, cache mechanism.

    sails-hook-orm-offshore

    In the road map right now there are:

    • Associations Criteria (add default criteria to association)
    • Transactions

提交回复
热议问题