UNPKG

@newrelic/gatsby-theme-newrelic

Version:

[![Community Project header](https://github.com/newrelic/opensource-website/raw/master/src/images/categories/Community_Project.png)](https://opensource.newrelic.com/oss-category/#community-project)

27 lines (23 loc) 490 B
module.exports = ({ createNode, createNodeId, createContentDigest, resource: { title, url }, parent, }) => { const data = { title, url }; const node = { ...data, id: createNodeId(`RelatedResource-${url}`), parent, children: [], plugin: '@newrelic/gatsby-theme-newrelic', internal: { type: 'RelatedResource', content: JSON.stringify(data), contentDigest: createContentDigest(data), }, }; createNode(node); return node; };