useStaticQuery in testing gatsby code example Example: usestaticquery gatsby import { useStaticQuery, graphql } from "gatsby"