gatsby-source-datocms icon indicating copy to clipboard operation
gatsby-source-datocms copied to clipboard

Create nodes for string fields too

Open lunelson opened this issue 4 years ago • 1 comments

This is a Feature Request in the form of a PR: I've tweaked this plugin in two spots to allow simple string fields to be Nodes in Gatsby, so they are open to processing. My use-case is an inline-tags-only version of gatsby-transformer-remark, which effectively treats the source code as a single paragraph, and returns only the innerHTML. This allows my content editors to use inline markdown tags (bold, emphasis, anchor) in simple string fields as well as multi-paragraph markdown fields.

Thoughts?

lunelson avatar Nov 03 '20 15:11 lunelson

@lunelson thanks and so sorry for the delay, I totally missed this one :(

We can definitely merge this, but only if you can add a configuration option to only enable this behavior if the developer explicitly asks so.

Creating/managing nodes in Gatsby is a very intensive operation, and creating nodes for each string field present in a project could add quite a lot of build time to bigger sites.

stefanoverna avatar Mar 29 '22 13:03 stefanoverna

I'm closing as I think there's no more interest on this

matjack1 avatar Mar 10 '23 15:03 matjack1