So, If I want to build lunr index from nodes with lunr-plugin I try to use such syntax, as described in its rtfm for gatsby-config.js:
{
resolve: `@gatsby-contrib/gatsby-plugin-elasticlunr-search`,
options: {
fields: [`name`],
// How to resolve each field`s value for a supported node type
resolvers: {
PostGraphile_Element: {
name: node => node.name,
},
// Or try to use my crated internal.type:
pgData: {
name: node => node.name,
},
},
},
},
The question is for I can get created child nodes by their type PostGraphile_Element or pgData
If I explore data, created by plugin, I can find:
And I even can modify these nodes like this:
But if I try to use this node in other places with constructions:
I get nothing.
So, If I want to build lunr index from nodes with lunr-plugin I try to use such syntax, as described in its rtfm for gatsby-config.js:
The question is for I can get created child nodes by their type
PostGraphile_Element
orpgData