Empty String vs. Null


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


I watching thanks

Victor Valle


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


This should be fixed now!


Awesome, thanks @gjtorikian!


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