On a standard Drupal 8 install using images in a node its fairly easy to get the image via GraphQL. There great examples here: https://github.com/gatsbyjs/gatsby/tree/master/examples/using-drupal
With the Acquia Lightning install profile (or if you're simply using the Media module I expect) Media is adding images differently, in GraphiQL I see the media field in relationships, the only sub field within that is __typename
{
allNodeBlog {
edges {
node {
relationships {
field_media {
__typename
}
}
}
}
}
}
I can also look at allMediaImage (or similar), in which I do have access to the images themselves. I can also all the node information in the 'relationships', But i need the node data to be the primary information of course. I don't really understand the best way to tie that query together with the nodes.
{
allMediaImage {
edges {
node {
relationships {
image {
localFile {
childImageSharp {
fluid {
...
}
}
}
}
node__blog {
id
}
}
}
}
}
}
I'm hoping that I can create the JSON in a different way perhaps to allow easier access to the images. Otherwise a way of getting the node id first then using that to select the appropriate media. Any ideas