Associations
legacy_messages
, and also a Role in a MySQL database called myapp
. These can be automatically joined together using the same ORM syntax as normal.)Better Error Handling in Waterline
Revamped Sails CLI
--dry
) for sails generate
and sails new
API Blueprints
GET /user/2/dogs
-- get dogs belonging to user #2GET /user/2/dad
-- get dad belonging to user #2PUT /user/2/dogs
-- add a dog to user #2DELETE /user/2/dogs/2
-- remove dog #5 from user #2PubSub
SomeModel.publish()
-- publish to model instanceSomeModel.subscribe()
-- subscribe socket to model instanceSomeModel.unsubscribe()
-- unsubscribe socket from model instancesails.publish()
-- publish to global channelsails.subscribe()
-- subscribe socket to global channelsails.unsubscribe()
-- unsubscribe socket to global channelError Negotiation Shortcuts
500.js
, 404.js
, 400.js
, 403.js
res.serverError( msgOrObj )
res.notFound()
res.forbidden( msgOrObj )
res.badRequest( msgOrObj )
The following features are considered deprecated and should at some point be removed from the codebase
<attribute>
In()<attribute>
Like()<attribute>
In()<attribute>
Like() <attribute>
In()<attribute>
Like()<attribute>
Contains()