Skip to content

Possible to have a "list" in the root of a file collection? #1282

@snirp

Description

@snirp

Gatsby can make relationships between nodes through "mappings". You need to refer to a file - yaml or json - which contains a list in the root.

This would be an example of a file that can be consumed by the Gatsby mapping:

- id: Kyle Mathews
  twitter: "@kylemathews"
- id: Mathew Kyles
  twitter: "@mathewkyles"

I have not found a way to have a root-level list in Netlify CMS. Am I correct that a list can only exist under an object? How can we achieve these mappings then?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions