Issue Description
TypeError: Cannot read property 'map' of undefined when iterating over an undefined array
Steps to reproduce
- Create a custom class (named as "tests")
- Create an Array field (named as "arr")
- Leave this field value
undefined (not null, not [])
- Execute the following GraphQL query:
query {
objects {
tests {
arr {
...on Element {
value
}
}
}
}
}
Expected Results
GraphQL query should execute.
Actual Outcome
TypeError: Cannot read property 'map' of undefined
parseClassTypes:652
Environment Setup
- Server
- parse-server version: 3.7.2
- Localhost or remote server? localhost
Issue Description
TypeError: Cannot read property 'map' of undefinedwhen iterating over an undefined arraySteps to reproduce
undefined(notnull, not[])Expected Results
GraphQL query should execute.
Actual Outcome
TypeError: Cannot read property 'map' of undefined
parseClassTypes:652
Environment Setup