Skip to content

sercanov/sails-hook-blueprint-associations

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

sails-hook-blueprint-associations

Custom blueprint hook to get associations

Using

Install

npm install sails-hook-blueprint-associations --save

Rock

GET /:model/associations

Ex request 'GET /user/associations'

Ex response

{
  "associations": [
    {
      "alias": "endpoints",
      "type": "collection",
      "collection": "endpoint",
      "via": "users"
    },
    {
      "alias": "clients",
      "type": "collection",
      "collection": "client",
      "via": "user"
    }
  ]
}

About

custom blueprint hook to get filterable fields in a model

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%