@charlietango/sort-schema-args

1.0.1 • Public • Published

Sort Schema Args

Plugin to ensure sorting order of arguments in GraphQL. It should be used with graphql-code-generator/. While not required by the spec, some plugins expect the order to match, or they will fail.

It builds on top of the normal GraphQL introspection plugin, so you can use this instead.

Setup

schema: my-schema.graphql
documents: "./src/**/*.graphql"
generates:
  output.ts:
    - "@charlietango/sort-schema-args"

Umbraco Heartcore fixes

The applies a set of fixes need to fix Umbraco Heartcore.

schema: my-schema.graphql
documents: './src/**/*.graphql'
generates:
  output.ts:
    plugins:
      - '@charlietango/sort-schema-args'
          heartcore: true

Readme

Keywords

none

Package Sidebar

Install

npm i @charlietango/sort-schema-args

Weekly Downloads

2

Version

1.0.1

License

MIT

Unpacked Size

2.87 kB

Total Files

4

Last publish

Collaborators

  • frederik_bosch
  • thebuilder