Alex Dai Playground

[Sails] population filter with a request URL

| Comments

Don't populate anything

http://127.0.0.1:1337/tasks?populate=false
http://127.0.0.1:1337/tasks?populate=[]

only populate user

http://127.0.0.1:1337/tasks?populate=[user]

populate user & project

http://127.0.0.1:1337/tasks?populate=[user,project]
http://127.0.0.1:1337/tasks?populate=user,project

http://stackoverflow.com/questions/23643870/how-to-selectively-populate-waterline-associations-via-query-param-in-sails-js
https://github.com/balderdashy/sails/pull/1695

Comments

comments powered by Disqus