Skip to content

Commit c3b1ad0

Browse files
committed
fix includeAll by considering array
1 parent bb385c4 commit c3b1ad0

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/RestQuery.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -676,7 +676,10 @@ RestQuery.prototype.handleIncludeAll = function () {
676676
const includeFields = [];
677677
const keyFields = [];
678678
for (const field in schema.fields) {
679-
if (schema.fields[field].type && schema.fields[field].type === 'Pointer') {
679+
if (
680+
(schema.fields[field].type && schema.fields[field].type === 'Pointer') ||
681+
(schema.fields[field].type && schema.fields[field].type === 'Array')
682+
) {
680683
includeFields.push([field]);
681684
keyFields.push(field);
682685
}

0 commit comments

Comments
 (0)