Raymond Feng
b3b29d7313
Enhance the wildcard to regexp conversion
2014-06-18 12:37:49 -07:00
Raymond Feng
a487eb57cd
Add like/nlike support for memory connector
2014-06-17 23:19:28 -07:00
Raymond Feng
ad3af82923
Add support for updating multiple instances with query
2014-06-17 16:30:02 -07:00
crandmck
4ff6e0d707
Minor JSDoc cleanup
2014-06-17 13:21:21 -07:00
crandmck
907163949e
Initial JSDoc cleanup
2014-06-17 13:18:18 -07:00
crandmck
36af31bf1c
Add ModelBuilder class
2014-06-17 13:04:30 -07:00
Raymond Feng
4b9d98c6ce
Allows skip or offset
...
See https://github.com/strongloop/loopback/issues/336
2014-06-17 09:07:55 -07:00
Raymond Feng
e2ab9ccc93
Adding back the remoting metadata
2014-06-16 13:46:17 -07:00
Raymond Feng
046816191d
Clean up scope implementation
2014-06-16 10:50:42 -07:00
Raymond Feng
2db43c58e5
Add support for hasOne
2014-06-16 01:17:37 -07:00
Raymond Feng
34c1998f04
Fix the hasMany through connection
2014-06-16 00:36:12 -07:00
Raymond Feng
1406c22a64
Refactor relation into classes
2014-06-15 15:53:58 -07:00
Raymond Feng
0c13f8c23a
Merge pull request #132 from strongloop/feature/memory-connector-comparator
...
Feature/memory connector comparator
2014-06-13 11:46:52 -07:00
crandmck
1787f5ec4f
Add properties and other doc cleanup
2014-06-11 15:47:44 -07:00
Alberto Leal
4fd3c969f9
Convert null to NotFoundError for remoting call to DataAccessObject.findOne.
2014-06-11 16:59:21 -03:00
Raymond Feng
bb57fcbe11
Fix the comparison for null/boolean values
2014-06-10 16:11:50 -07:00
crandmck
c355c99cbd
More JSDoc cleanup
2014-06-10 14:27:58 -07:00
Raymond Feng
6e8034ff93
Fix the forEach closure
2014-06-06 09:59:57 -07:00
Raymond Feng
b5816506e0
Add boolean tests
2014-06-06 09:28:08 -07:00
Raymond Feng
e0d3fec743
Fix the typo
2014-06-06 09:10:47 -07:00
Raymond Feng
171642ff48
Make sure the records are sorted by seq
2014-06-06 09:09:56 -07:00
Raymond Feng
0191e3c2db
Add more tests
2014-06-06 08:48:05 -07:00
Raymond Feng
a0a9fae9c6
Enhance comparators for memory connector
2014-06-06 08:19:41 -07:00
Rand McKinney
04e1256b8b
Update datasource.js
...
Fix small typo
2014-06-04 17:44:57 -07:00
Rand McKinney
29e3eb991f
Update docs.json
...
Remove lib/model.js
2014-06-04 16:16:39 -07:00
Rand McKinney
f651edca03
Update docs.json
...
Remove model-builder.js and sql.js
2014-06-04 16:05:43 -07:00
Raymond Feng
73093f892d
Merge tag 'v1.5.5'
...
1.5.5
2014-06-04 15:27:47 -07:00
Raymond Feng
94586e9a1e
Merge branch 'release/1.5.5' into production
2014-06-04 15:27:38 -07:00
Raymond Feng
8087e4b1e7
Bump version
2014-06-04 15:26:04 -07:00
Raymond Feng
ea5c766ec1
Merge pull request #130 from strongloop/feature/fix-sql-count
...
Fix Model.count base implementation and Normalize/validate the query filter
2014-06-04 15:25:05 -07:00
Raymond Feng
5f3c856d2e
Fix the logical operator check
2014-06-04 14:23:53 -07:00
Raymond Feng
cdf9956867
Fix JS doc for private methods
2014-06-04 14:02:55 -07:00
Miroslav Bajtoš
19eb3361e6
Merge remote-tracking branch 'origin/production' into production
2014-06-03 17:47:28 +02:00
Miroslav Bajtoš
9a03450e76
Merge pull request #127 from strongloop/feature/refactor-connector-base
...
[2.0] Feature/refactor connector base
2014-06-03 17:46:15 +02:00
Raymond Feng
42c1ad3dca
Normalize/validate the query filter object
2014-06-02 15:57:44 -07:00
Raymond Feng
3e8284d1ee
Use connector's buildWhere to implement count
2014-06-02 15:57:06 -07:00
Rand McKinney
653aab856c
JSDoc improvements
...
Improve createModel doc, Fix some other minor issues.
2014-05-29 15:33:01 -07:00
Miroslav Bajtoš
d8b4f5833a
ModelBuilder: add `prototype.defineValueType`
...
Add a shortcut for registering a new value type.
The current implementation registers the type in the singleton registry
`ModelBuilder.schemaTypes`.
The API should allow us to to change the implementation to register
the type in the scope of ModelBuilder instance only.
2014-05-29 11:57:59 +02:00
Miroslav Bajtoš
a86648ed7b
Replace connector base with loopback-connector
...
Remove references to Connector and BaseSQL, connectors should require()
loopback-connector instead of loopback-datasource-juggler.
2014-05-29 11:57:49 +02:00
Miroslav Bajtoš
42a7ed5d20
Merge branch 'feature/remove-unsupported-connectors' into 2.0
...
Close #120
2014-05-28 19:50:13 +02:00
Miroslav Bajtoš
9b33d9a274
Remove unsupported connectors
...
- cradle
- http
- neo4j
- riak
2014-05-28 19:49:07 +02:00
Raymond Feng
ca0c82ca4e
Merge tag 'v1.5.4'
...
1.5.4
2014-05-27 22:28:05 -07:00
Raymond Feng
506f8cccaf
Merge branch 'release/1.5.4' into production
2014-05-27 22:27:58 -07:00
Raymond Feng
01410c3495
Bump version
2014-05-27 22:25:42 -07:00
Raymond Feng
6662bde84d
Bump version
2014-05-27 22:25:42 -07:00
Raymond Feng
7a087f3583
Keep undefined/null values for the array type
...
This allows connectors to distinguish between empty array and
undefined/null. For example, mongodb will not override existing array
properties if the value is undefined.
2014-05-27 22:25:42 -07:00
crandmck
e2789134b0
Remove JSDocs for scopeMethods.add(acInst) and scopeMethods.remove(acInst)
2014-05-27 22:25:42 -07:00
crandmck
ea263f86ee
Copy info from api-model.md to JSDoc
2014-05-27 22:25:42 -07:00
Miroslav Bajtoš
dc3d2233e7
1.5.2
2014-05-27 22:25:42 -07:00
Miroslav Bajtoš
438df25d8e
validations: include more details in `err.message`
...
Modify ValidationError constructor to include the model name and
a human-readable representation of the validation errors (messages)
in the error message.
Before this change, the message was pointing the reader
to `err.details`. Most frameworks (e.g. express, mocha) log only
`err.message` but not other error properties, thus the logs were
rather unhelpful.
Example of the new error message:
The `User` instance is not valid. Details: `name` can't be blank.
2014-05-27 22:25:42 -07:00