Skip to content

[1.0] Suggestion: make plugin generated node names more terse #1122

@0x80

Description

@0x80

Plugins create nodes names like childMarkdownRemark and childImageSharp.

So the node is named after child + type + plugin. That seems overly verbose to me. I would think markdownRemark and imageSharp is already clear enough.

Also the type seems unnecessary since the user will already know what remark or sharp does, and the type of content they work with. I get that you want to avoid naming collisions, but then I would suggest picking a clear standardized prefix like ext.

So nodes could be named extRemark and extSharp.

What do you think?

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