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
I'm trying to figure out how to handle relations in a good way. I've read some other issues and the documentation but it still haven't "clicked" for me.
So I have a index.md file that looks like this and I want to somehow "pull" content from multiple other markdown files. In this case I use a relative path to reference the other files.
I know it works it the featured_case wouldn't be an array but just the relative path to a file. Is there some straightforward way to enable this for arrays?
Is there another better way to do relations? I feel like using the path is the most robust way, since titles can change etc. And I'm not a big fan of the "mapping" solution, since that field will be added on all files if I'm not mistaken.
Summary
I'm trying to figure out how to handle relations in a good way. I've read some other issues and the documentation but it still haven't "clicked" for me.
So I have a
index.md
file that looks like this and I want to somehow "pull" content from multiple other markdown files. In this case I use a relative path to reference the other files.I know it works it the
featured_case
wouldn't be an array but just the relative path to a file. Is there some straightforward way to enable this for arrays?Is there another better way to do relations? I feel like using the path is the most robust way, since titles can change etc. And I'm not a big fan of the "mapping" solution, since that field will be added on all files if I'm not mistaken.
Relevant links
https://www.gatsbyjs.org/docs/creating-a-source-plugin/#two-ways-of-adding-relationships-between-nodes
#3129
The text was updated successfully, but these errors were encountered: