question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error unwrapping list of lists

See original GitHub issue

I have created a graphql schema which I have boiled down to this

type SomeQuery {
    title: String
    failingField: [[String!]!]
}

Now, when I try and fetch this on the front end, I get the following error

TypeError: Cannot read property 'value' of undefined
    at unwrapType (file:///.../node_modules/houdini/build/cmd.js:73765:53)
    at inlineType (file:///.../node_modules/houdini/build/cmd.js:76263:14)
    at file:///.../node_modules/houdini/build/cmd.js:76315:33
    at Array.map (<anonymous>)
    at inlineType (file:///.../node_modules/houdini/build/cmd.js:76308:132)
    at file:///.../node_modules/houdini/build/cmd.js:76315:33
    at Array.map (<anonymous>)
    at inlineType (file:///.../node_modules/houdini/build/cmd.js:76308:132)
    at file:///.../node_modules/houdini/build/cmd.js:76315:33
    at Array.map (<anonymous>)

But if I leave out the failingField field, the query succeeds. I am not sure if this is an issue with Houdini, or I am doing something wrong

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
SorenHolstHansencommented, Jul 31, 2021

Thanks man! You are a wizard

1reaction
AlecAivaziscommented, Jul 30, 2021

oo the list of lists is for sure to blame - Ill work on getting a fix out tonight

Read more comments on GitHub >

github_iconTop Results From Across the Web

Problem unpacking list of lists in a for loop? - Stack Overflow
In the first loop, set is (date(2010, 7, 5), ['item 1', 'item 2']) and you unpack it. a,b and set have the same...
Read more >
ValueError: too many values to unpack (expected 2)
Unpacking refers to retrieving values from a list and assigning them to a list of variables. This error occurs when the number of...
Read more >
How to Unpack a List in Python
Unpacking and packing · First, unpack the needed elements to variables. · Second, pack the leftover elements into a new list and assign...
Read more >
Python | Unpacking tuple of lists - GeeksforGeeks
Given a tuple of lists, write a Python program to unpack the elements of the lists that are packed inside the given tuple....
Read more >
A Helpful Illustrated Guide to Nested Lists in Python - Finxter
Problem : Given a list of lists. The inner lists have a varying number of elements. How to convert them to a NumPy...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found