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.js
add file
content/tags/my-tag.md
you can explole
but, this is not able to connect to your
Post
.or just added description to
Tag
, you can useaddSchemaResolvers
. ingridsome.server.js