Skip to content

feature request: Option to flattern single item references #130

@psykzz

Description

@psykzz

Regardless of if a reference is marked single / multiple, when querying the data in gatsby you will always get an array.

I would like to propose an option to flatten single item references, or if possible be smart and detect if the value was defined as a multiple and only then flatten the array.

Right now im required to do this either via deconstruction or just standard mutation and creates quite a lot of boilerplate.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions