data
prop. GraphQL and Gatsby let you ask for data and then immediately start using it.query
as the “Operation Type”, for Gatsby’s uses the only operation type you will deal with is query
, this can be omitted from your queries if you prefer (like in the above example).SiteInformation
is marked as the “Operation Name”, which is a unique name that you assign to a query yourself. This is similar to how you would name a function or a variable, and like a function this can be omitted if you would rather the query be anonymous.site
, id
, siteMetadata
, and title
are marked as “Fields”. Any top-level fields — like site
in the diagram — are sometimes referred to as root level fields, though the name doesn’t signify functional significance as all fields in GraphQL queries behave the same.gatsby-transformer-remark
, then in your queries, you can specify if you want the transformed HTML version instead of markdown:gatsby-transformer-sharp
, you can query your images for responsive versions. The query automatically creates all the needed responsive thumbnails and returns src
and srcSet
fields to add to your image element.gatsby-image
looks like:...GatsbyImageSharpFixed
, which is a GraphQL Fragment, a reusable set of fields for query composition. You can read more about them here.