Skip to content

canonicalize/normalize document utility #2342

Open
@micimize

Description

@micimize

Feature requests

Would a canonicalize(node) or normalize(node) utility be a desirable feature? I started working on one to simplify some aspects of ast-based code generation, though all it does right now is merge duplicate fields

I don't think it should inline fragments or anything like that (though maybe conditionally). Maybe we'd need to spec out exactly what a canonical document form would actually look like though

Metadata

Metadata

Assignees

No one assigned

    Labels

    PR: feature 🚀requires increase of "minor" version number

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions