Closed ziopod closed 3 years ago
Hey @ziopod,
This plugin pulls data directly from the store, so it will never hit any graphql resolvers.
You could either transform this data before it goes into the store with onCreateNode
, or you could use the GraphQL instructions here https://github.com/thetre97/gridsome-plugin-flexsearch#graphql-source which will get data using the Gridsome graphql
function, so it will then hit those resolvers.
Hope that helps.
Hi,
I have some custom field resolvers in my
gridsome.server.js
. I can figure how can get my custom field with flexSearch.Do i use the righ way?
Custom field resolver example:
Gridsome plugin Flexsearch configuration (
gridsome.config.js
):Excpected result:
Obtained :
If someone has a clue, Best regards, — Steve