Error unwrapping list of lists
See original GitHub issueI 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:
- Created 2 years ago
- Comments:5 (1 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks man! You are a wizard
oo the list of lists is for sure to blame - Ill work on getting a fix out tonight