Querying Global fields using CraftQL and Gatsby JS
In looking at this, the first thing I notice is that your query has a field called globals, but your error has the singular global.

If you open Gatsby’s GraphiQL instance (http://localhost/8000/___graphql in develop mode), can you see the Craft CMS data in the docs? That might help zero in on the query to use in Gatsby.

Hope that helps!