Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tags object #51

Closed
ramsesgarate opened this issue Jul 16, 2020 · 2 comments · Fixed by #59
Closed

Tags object #51

ramsesgarate opened this issue Jul 16, 2020 · 2 comments · Fixed by #59
Assignees

Comments

@ramsesgarate
Copy link

Currently this is my plugin configuration:

{
      use: 'gridsome-plugin-flexsearch',
      options: {
        flexsearch: {
          cache: true,
          profile: 'match'
        },
        collections: [{
          typeName: 'Post',
          indexName: 'Post',
          fields: ['title', 'description', 'tags', 'date']
        }],
        searchFields: ['title', 'tags'],
      }
    }

Is there any way that the tag output would look like this?

[
  {
    "id":"markdown",
    "title":"markdown",
    "path":"/tag/markdown/"
  },
  {
    "id":"test-files",
    "title":"test-files",
    "path":"/tag/test-files/"
  }
]

Currently returns an array with only the title

[
  "markdown",
  "test-files"
]

I was trying to use a query like I suggested on the plugin page, but I think I didn't configure it well, because it doesn't generate any results for me, so I decided to continue with the normal configuration.

@travis-r6s
Copy link
Owner

@ramsesgarate Thanks for reporting this. I hadn't tested it with the source filesystem -> refs config, it seems that it creates that relation after this plugin fetches the nodes. I'll try and take a look at this.

@travis-r6s travis-r6s self-assigned this Jul 20, 2020
This was referenced Nov 8, 2020
@travis-r6s travis-r6s linked a pull request Nov 8, 2020 that will close this issue
2 tasks
@travis-r6s
Copy link
Owner

@ramsesgarate I have made some updates to this plugin on the graphql branch - if you get the time, could you check to see if it fixes this issue for you?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants