You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: