GraphQL queries return a type or null. I'm having trouble coming up with a clean way to handle all these nulls cleanly...
if I have a big nested graphql query...
query {
  markdown {
    authors {
      names {
        first 
      }
    }
  }
}
then each of those fields is nullable up to the top, so then in my TSX file I would have to check those somehow, but how to do it cleanly?
const Component = ({ data }) => (
  <div>
   {data && data.markdown && data.markdown.authors && data.markdown.authors.names && data.markdown.authors.names.first}
  </div>
)
 
    