File tree Expand file tree Collapse file tree 7 files changed +5218
-33
lines changed Expand file tree Collapse file tree 7 files changed +5218
-33
lines changed Original file line number Diff line number Diff line change 1+ dist : trusty
2+ sudo : false
13language : node_js
24node_js :
3- - " 0.10"
4- - " 4"
5+ - 4
6+ - 6
7+ - 8
58services :
69 - mysql
710 - postgresql
8- script : " npm run $TEST_STEP"
9- env :
10- matrix :
11- - TEST_STEP=lint
12- - TEST_STEP=test SEQUELIZE_DIALECT=mysql
13- - TEST_STEP=test SEQUELIZE_DIALECT=postgres
11+ script : npm run ci
1412notifications :
1513 email : false
Original file line number Diff line number Diff line change 1+ - 2017-09-25 - v2.0.0-alpha
2+ - 2017-09-25 - :warning : GraphQL support is incomplete in this alpha release
3+ - 2017-09-25 - Bump all dependencies
4+ - 2017-09-25 - Support Node.js 8
5+ - 2017-09-25 - Only Node.js >= 4.5 is now supported
6+ - 2017-09-25 - Support latest ` jsonapi-server `
17- 2016-08-09 - v1.2.8
28- 2016-08-09 - Update ` sequelize ` dependency to latest version
39- 2016-08-09 - Optimised searches filtered by related resource
Original file line number Diff line number Diff line change 1+ ### :warning : !!! GraphQL support is incomplete for the current 2.0.0-alpha release !!! :warning :
2+
13[ ![ Coverage Status] ( https://coveralls.io/repos/holidayextras/jsonapi-store-relationaldb/badge.svg?branch=master&service=github )] ( https://coveralls.io/github/holidayextras/jsonapi-store-relationaldb?branch=master )
24[ ![ Build Status] ( https://travis-ci.org/holidayextras/jsonapi-store-relationaldb.svg?branch=master )] ( https://travis-ci.org/holidayextras/jsonapi-store-relationaldb )
35[ ![ npm version] ( https://badge.fury.io/js/jsonapi-store-relationaldb.svg )] ( http://badge.fury.io/js/jsonapi-store-relationaldb )
Original file line number Diff line number Diff line change @@ -259,6 +259,9 @@ SqlStore.prototype._generateSearchIncludes = function(relationships) {
259259
260260 var matchingValue = relationships [ relationName ] ;
261261 if ( ! matchingValue ) return partialSearchIncludes ;
262+ if ( typeof matchingValue === 'string' ) {
263+ matchingValue = matchingValue . split ( ',' )
264+ }
262265 if ( matchingValue instanceof Array ) {
263266 matchingValue = matchingValue . filter ( function ( i ) {
264267 return ! ( i instanceof Object ) ;
You can’t perform that action at this time.
0 commit comments