We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents f31d84f + feb3b48 commit 6fb56d9Copy full SHA for 6fb56d9
src/Builder.js
@@ -48,7 +48,7 @@ export default class Builder {
48
}
49
50
// single entity .select(['age', 'firstname'])
51
- if (fields[0].constructor === String || fields[0].constructor === Array) {
+ if (fields[0].constructor === String || Array.isArray(fields[0])) {
52
this.fields[this.model.resource()] = fields.join(',')
53
54
0 commit comments