Skip to content

Docs for relationships need more examples, clearer docs, probably a guide #21852

@adamavenir

Description

@adamavenir

Summary

Gatsby has some powerful features for creating relationships between data, but each of the ones I have encountered have a real need for more thorough documentation. The docs for these features were ultimately not quite clear enough for me as an intermediate gatsby user working on my third gatsby project.

There would be tremendous value in a single guide explaining the options someone would have in using the various methods for creating relationships (the mapping and @link approaches, as well as more manual ways of creating relationships), along with walkthroughs.

You can see some of the confusion in #21678. The difficulty the widyakumara was having are different from the things that were hangups for me, but it was fairly clear between each of our experiences that there’s just too many assumptions baked into the docs at the present..

I still don’t even understand how to get the mapping feature work. (Though after getting @link to work, I probably would have an easier time going back and figuring it out, and I also think some of the challenge might come from the added complexity of using multiple markdown+frontmatter sets, which in and of itself was a little tricky.)

In summary, the following would be valuable:

  • An explanatory guide to the various options for creating relationships in Gatsby
  • A walkthrough for each approach
  • How to use different markdown data sets alongside each other
  • Improve documentation and examples for mapping and @link features

Motivation

As someone who has worked with a dozen different static site generators over the years, these are very valuable features which make gatsby extremely powerful.

Once we were able to figure out to use the @link decorator, it’s been a dream to work with and amazingly simple to use, but it took a lot of trial-and-error to get there. To me, that means there’s a pretty huge ROI for improving the docs in this area. Which is great!

Draft the doc

Open a pull request

  • Open a pull request with your work including the words "closes #[this issue's number]" in the pull request description

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: documentationAn issue or pull request for improving or updating Gatsby's documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions