Empty String vs. Null


#1

When querying user information from GitHub’s GraphQL API, sometimes the user’s location attribute is "" and sometimes it is null. Is that intentional?


#2

I watching thanks

Victor Valle


#3

Nope! These should be set to null. I’ll open a PR internally and respond when it’s finished. Thanks for the report!


#4

This should be fixed now!


#5

Awesome, thanks @gjtorikian!


#6

@gjtorikian I’m seeing the same thing with email being an empty string at times too. I suppose it should be null as well?