Query by content relationship

Hey Kris, I didn't realize at first that you where using Gatsby. In this case, it is not a where argument what you need. You'll use the filter argument to get all the docs that match a given Id. Take a look at this new example query

{
  allPrismicAcademyPost(filter: {data: {author: {id: {eq: "YP2kyhAAAB8AuuiO"}}}}) {
    edges {
      node {
        data {
          author {
            id
          }
        }
      }
    }
  }
}