Graphql error Connecting Gatsby to a Strapi CMS Heroku Backend

Hi there! New to using Strapi, but encountered this error following this gatsby strapy tutorial. In my case, the fix was changing the queries for the publicURL fields on the ShareImage and Favicon types from

query {
    strapiGlobal {
      siteName
      favicon {
        publicURL
      }
      defaultSeo {
        metaTitle
        metaDescription
        shareImage {
          publicURL
        }
      }
    }

to

query {
    strapiGlobal {
      siteName
      favicon {
        localFile {
            publicURL
        }
      }
      defaultSeo {
        metaTitle
        metaDescription
        shareImage {
          localFile {
             publicURL
          }
        }
      }
    }

and update uses from favicon.publicURL / shareImage.publicURL to favicon.localFile.publicURL / shareImage.localFile.publicURL