TylerBarnes / gatsby-wordpress-inline-images

Fluid images for gatsby-source-wordpress inline images in post_content
57 stars 25 forks source link

Question: how does setting entity.content work? #11

Closed jamessimone closed 4 years ago

jamessimone commented 5 years ago

Hi there,

Sorry to open up an issue but I am trying to understand how this plugin works with Gatsby - all of their documentation would seem to suggest that nodes and their content are immutable once created.

I am working on a similar plugin for another CMS and so far it seems my only option after having the remote images get downloaded and the node’s original content gets massaged with the remark images is to delete the original node and replace it. In my experience setting node.content = the new content hasn’t been persisted to the content that ends up showing up via graphql / in the final html injected into my pages, but maybe I am just missing something about how this plugin works.

Any insight into the why / how this works for you would be appreciated!