I'm using @gridsome/source-filesystem with this config:
{
use: '@gridsome/source-filesystem',
options: {
typeName: 'Post',
path: 'content/posts/**/*.md',
refs: {
tags: {
typeName: 'Tag',
create: true
},
author: {
typeName: 'Author',
create: true
}
}
},
}
Now I want to add description for one tag only, so I created a new doc in content/posts/my-tag.md:
---
title: Tag-Title
description:tag description
---
How can I connect this document to the allTags collection?
Or any other way (without @gridsome/source-filesystem for Tags, for example), to add description to exists node in collection?
If you want to just add
allTags, you can create markdown for it.in
gridsome.config.jsadd file
content/tags/my-tag.mdyou can explole
but, this is not able to connect to your
Post.or just added description to
Tag, you can useaddSchemaResolvers. ingridsome.server.js