Skip to content

Idea: add ability to output GraphQL DocumentNode instead of function call + graphql string #282

Description

@illusionalsagacity

In the same vein as babel-plugin-graphql-tag, graphql-ppx could output a GraphQL DocumentNode.

In my mind, this has a few benefits:

  • Eliminates the runtime bundle download and execution cost of including graphql, while not the largest dependency out there, is non-zero at 166.1 kB minified and 39.7kB minified + gzipped
  • Should have faster module evaluation if outputting var documentNode = JSON.parse("<minified_ast>")

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions