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.

How to express a list of nullable elements

See original GitHub issue

Some of the elements of my query may be null, so I’m writing it like:

type Query {
    myList: [String]!
}

I should expect to get something like this, right?

interface Query {
    myList: (string | null)[]
}

but I get this

interface Query {
    myList: string[]
}

which is not quite right I think.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
sundeercommented, May 8, 2018

sorry for not responding sooner but that looks complete. btw - loving this repo!

1reaction
dotansimhacommented, May 7, 2018

Done in 0.9.0 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Adding null values to arraylist - java - Stack Overflow
If I can add null values to an ArrayList , can I loop through only the indexes that contain items like this? for(Item...
Read more >
Null being added to every element in list list
Generally, you'll want to use Table (or maybe Array , or Sow and Reap for " AppendTo —like functionality") to build lists, not...
Read more >
null as an Element
An ArrayList element can be an object reference or the value null . When a cell contains null , the cell is not...
Read more >
Design with nullable reference types - Microsoft Learn
Tutorial: Express your design intent more clearly with nullable and non-nullable ... Open the .csproj file and add a Nullable element to the ......
Read more >
R Programming: Assign NULL to a given list element
Write a R program to assign NULL to a given list element. Sample Solution : R Programming Code : l = list(1, 2,...
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