Kogulan Baskaran
b4f1b2f02c
Add options to bulkUpdate
2016-11-15 17:40:44 +01:00
Candy
8f08398c30
Update doc links
2016-11-04 16:47:12 -04:00
David Cheung
5252fba376
allow batch create for persisted models
...
In strong-remoting 3.x, we have stricken the coercion of inputs
methods that are expecting an Object will nolonger accept an array
as input, to preserve backwards compatibility we have added flag
allowArray in remote arguments, which would accept an array of objects
2016-10-25 15:45:00 -04:00
Miroslav Bajtoš
1439446b36
Fix description of updateAll response
...
Correctly describe the first non-error callback arg as an `info` object
containing a `count` property.
2016-10-12 12:43:53 +02:00
Tim van der Staaij
c58bff6c3d
Fix support for remote hooks returning a Promise
...
Fix beforeRemote/afterRemote to correctly return promises returned
by the user-provided hook callback.
2016-10-05 10:32:44 +02:00
Candy
246da8fc5e
Add license text
2016-09-23 10:32:22 -04:00
Candy
640f3a8ca7
Update globalization structure
2016-09-22 11:58:00 +02:00
Richard Pringle
0ab33a82d4
Call new disable remote method from model class.
2016-09-21 14:09:24 -04:00
Candy
d4b8cf670f
Fix remote method inheritance
2016-09-13 13:23:09 -04:00
Miroslav Bajtoš
6e1defcb18
Use strong-remoting's new TypeRegistry
2016-09-09 10:01:29 +02:00
Miroslav Bajtoš
32bdeccebf
app.enableAuth: correctly detect attached models
...
Fix a typo in "app.enableAuth" that caused the method to not detect
the situation when e.g. the built-in User model is already attached
to a datasource.
2016-09-09 09:02:41 +02:00
Miroslav Bajtoš
f76edd5d61
Fix remoting metadata for "data" arguments
...
Fix the definition of "data" argument to
{ type: 'object', model: modelName, ... }
That way strong-remoting passed the request body directly to the model
method (does not create a new model instance), but the swagger will
still provide correct schema for these arguments.
This fixes a bug where upsert in relation methods was adding default
property values to request payload.
2016-09-07 14:27:58 +02:00
gunjpan
832e2c391c
Discard sugar method for model creation
...
Current implementation of `app.model(modelName, settings)`
works as a sugar for model creation. In 3.0, this is
not supported anymore. This implementation reports an
error when sugar is used for model creation.
Includes:
- Updated app.model() method
- Fixed test cases reflecting the change
2016-09-07 10:40:23 +02:00
Amirali Jafarian
a6f8ec672d
Merge pull request #2539 from mountain1234585/upsertWithWhere
...
Add upsertWithWhere
2016-09-06 15:54:21 -04:00
Miroslav Bajtoš
d13d2a7ab0
Remove one-var exceptions no longer needed
2016-09-06 15:47:35 +02:00
Sonali Samantaray
aef6dca30c
Expose upsertWithWhere method
2016-09-02 18:10:47 +05:30
Subramanian Krishnan
40f0690573
Make the app instance available to connectors
2016-08-29 15:15:53 +02:00
Amir Jafarian
b80666a507
Reorder PATCH Vs PUT endpoints
...
*Reorder PATCH Vs PUT endpoints for update* methods
2016-08-26 11:08:35 -04:00
Samuel Reed
22345cfcda
Support 'alias' in mail transport config.
...
Useful if you need to set up multiple transports of the same type.
[forward-port of #2489 ]
2016-08-16 16:24:56 +02:00
Miroslav Bajtoš
da0a543983
Merge pull request #2622 from strongloop/fix/unglobalize-swagger
...
Revert globalization of Swagger descriptions
2016-08-16 13:59:26 +02:00
Miroslav Bajtoš
eec326dc80
Revert globalization of Swagger descriptions
2016-08-15 11:06:05 +02:00
Miroslav Bajtoš
80a0b7d7ad
Revert globalization of assert() messages
2016-08-15 08:53:25 +02:00
Miroslav Bajtoš
a259e59afc
common: add KeyValueModel
2016-08-10 14:15:22 +02:00
Miroslav Bajtoš
59a82a9d5e
Globalize current-context error messages
2016-08-10 13:43:40 +02:00
Miroslav Bajtoš
b087c930ed
Remove current-context API
...
Change all current-context APIs to throw a helpful error.
2016-08-10 13:43:40 +02:00
Candy
3239942ff1
Update globalization
2016-08-04 17:35:21 -04:00
Candy
b52a7217a9
Add globalization
2016-08-04 15:08:16 -04:00
Rand McKinney
1b55d35542
Update loopback.js
...
Fix doc comment per #2534
2016-07-26 15:52:40 -07:00
Candy
3bf9065203
Remove `rectifyAllChanges` and `rectifyChange`
2016-06-20 10:46:16 -04:00
Amir Jafarian
6502309e34
Expose `Replace*` methods
...
*Re-mapping `updateAttributes` endpoint to use
`PATCH` and `PUT`(configurable) verb
*Exposing `replaceById` and `replaceOrCreate` via
`POST` and `PUT`(configurable) verb
2016-06-10 14:56:44 -04:00
Miroslav Bajtoš
8d295b70f6
Remove legacy express 3.x middleware getters
...
Remove middleware-getter properties that were simlifying upgrade from
LoopBack 1.x/Express 3.x applications:
- loopback.compress
- loopback.timeout
- loopback.cookieParser
- loopback.cookieSession
- loopback.csrf
- loopback.errorHandler
- loopback.session
- loopback.methodOverride
- loopback.logger
- loopback.responseTime
- loopback.favicon
- loopback.directory
- loopback.vhost
Also remove `loopback.mime`, which was set to `undefined` anyways.
2016-05-31 18:59:21 +02:00
Amir Jafarian
eb8f398c6a
Docuemtation for `replace*` methods
2016-05-20 16:29:25 -04:00
Amir Jafarian
5c3d021fe7
Make the doc clear for `findORCreate` cb
2016-05-17 17:50:13 -04:00
David Cheung
e723d8b641
Throw error upon extending unknown model
...
Create Model now uses findModel to retrieve base instead of getModel
and throws error upon base model not found
2016-05-10 18:00:56 -04:00
Ryan Graham
6964914bab
update copyright statements
2016-05-03 15:50:21 -07:00
Miroslav Bajtoš
4d7154a31a
app: send port:0 instead of port:undefined
...
Node v6 no longer supports port:undefined, this commit is fixing
app.listen() to correctly send port:0 when no port is specified.
2016-05-03 16:20:07 +02:00
Miroslav Bajtoš
87bbf4502a
Remove "loopback.autoAttach()"
...
The method was deprecated since LoopBack 2.0, there is no need to keep
it around in 3.0.
2016-05-03 14:01:39 +02:00
Simon Ho
d16c789638
Fixes for emit `remoteMethodDisabled` PR
...
See https://github.com/strongloop/loopback/pull/2266#issuecomment-215689358
2016-04-29 16:42:13 -07:00
Supasate Choochaisri
0ca24389b2
Add new feature to emit a `remoteMethodDisabled` event when disabling a remote method.
...
Signed-off-by: Supasate Choochaisri <supasate.c@gmail.com>
2016-04-28 09:03:54 +07:00
Tim Needham
159aaf5afa
Fix typo in Model.nestRemoting
...
Prevent apps from crashing when using `Model.nestRemoting` without
`{ hooks: false }` option.
Note that it is not possible to reproduce this bug using our current
Mocha test suite, because other tests modify the global state in such
way that the bug no longer occurs.
2016-04-19 16:51:52 +02:00
Rand McKinney
58f32dd70e
Update loopback.js
...
Update comment line that was creating invalid info in API docs.
2016-04-18 09:42:56 -07:00
Rand McKinney
88d41f84fd
Merge pull request #2155 from sghung/master
...
Fix inconsistencies in JSDoc
2016-04-06 16:01:31 -07:00
Miroslav Bajtoš
f9702b0ace
Use eslint with loopback config
...
Drop jshint and jscs in favour of eslint.
Fix style violations.
While we are at this, reduce the max line length from 150 to 100.
2016-04-06 10:45:30 +02:00
Jue Hou
eb09681f21
promise docs
...
Add promise jsdoc in loopback
2016-04-04 12:35:35 -04:00
sghung@ca.ibm.com
d69ab1e411
Update JSDoc
2016-04-01 14:00:01 -04:00
Candy
b5b900e0ff
Remove constraint making isStatic required
2016-03-30 11:16:32 -04:00
Simon Ho
b4e230389d
Merge pull request #1780 from linguofeng/patch-1
...
Update persisted-model.js
2016-03-22 16:10:22 -07:00
sghung@ca.ibm.com
3302391ac7
Fix inconsistencies in JSDoc
2016-03-17 23:55:12 -04:00
Miroslav Bajtoš
93d487ffc0
Improve error message on connector init error
2016-02-26 14:46:26 +01:00
Sam Roberts
b9acace932
application: correct spelling of "cannont"
2016-02-18 20:36:07 -08:00