query: ```graphql { repositoryOwner(login: "_dnxv__") { ... on ProfileOwner { pinnedItemsRemaining itemShowcase { hasPinnedItems } } } } ``` result: ```json { "data": { "repositoryOwner": null } } ``` but the variable `query` in golang is a struct, so how to check if it's null? any workaround or tricks?
Activity
dmitshur commentedon May 18, 2020
You can use a pointer to a struct, and check if the pointer value is
nil. For example: