Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Null values in lists #65

Closed
johnthepink opened this issue Mar 31, 2016 · 1 comment
Closed

Null values in lists #65

johnthepink opened this issue Mar 31, 2016 · 1 comment
Assignees
Labels

Comments

@johnthepink
Copy link
Contributor

Lists from GraphQL should all be of the same type, in theory. But, It may also return a null in the middle of a list:

      nestedArray: [
        {
          stringField: 'This is a string too!',
          numberField: 6,
          nullField: null,
        },
        {
          stringField: 'This is a string also!',
          numberField: 7,
          nullField: null,
        },
        null,
      ],

Currently, this will error out:

 Error: Can't find field stringField on result object abcd.nestedArray.2.
@johnthepink
Copy link
Contributor Author

Closed via #70

@clodal clodal mentioned this issue Jul 22, 2017
jbaxleyiii pushed a commit that referenced this issue Oct 17, 2017
jbaxleyiii pushed a commit that referenced this issue Oct 18, 2017
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 17, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants