Gatsby/Ghost how to modify a page in Gatsby that was generated from Ghost


I created a “tags” page in ghost and using code injection, injected a little bit of code so that all tags created would be listed on that page as links.

Because of a known issue when you build the site with gatsby the script I injected doesn’t work and the page is blank.

I would like to modify that page in gatsby so it works correctly. Since the content of the page comes from ghost all I could find is the page in graphQL.

query MyQuery {
  allGhostPage {
    nodes {

Can I just modify it? I searched but all I could find was this

Is there a better way to be doing this?