Skip to content

Commit 08db917

Browse files
authored
Merge branch 'master' into patch-1
2 parents ffc1b61 + 08a0a9a commit 08db917

File tree

7 files changed

+5218
-33
lines changed

7 files changed

+5218
-33
lines changed

.travis.yml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
1+
dist: trusty
2+
sudo: false
13
language: node_js
24
node_js:
3-
- "0.10"
4-
- "4"
5+
- 4
6+
- 6
7+
- 8
58
services:
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
1412
notifications:
1513
email: false

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
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

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
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)

lib/sqlHandler.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff 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);

0 commit comments

Comments
 (0)