0.2.1 • Published 9 years ago

wejsv2old-plugin-attribute v0.2.1

Weekly downloads
4
License
MIT
Repository
github
Last release
9 years ago

We.js Attribute plugin

Dependency Status

Add suport to update one model value and add the Model.publishAttributeUpdate() pubsub action

API:

Publish one attribute update for subscribers:

sails.models[modelName].publishAttributeUpdate(record, data, req);

Avaible URLS:

Upload one model attribute and emit one socket.io message with the verb attributeUpdated

post /api/v1/:modelName/:id/:attribute

How to install:

In we.js project:

npm install we-plugin-attribute --save

NPM Info:

NPM

Copyright and license

Copyright 2013-2014 Alberto Souza alberto.souza.dev@gmail.com and contributors , under the MIT license.