Pretty GraphQL Plugin

Adapter plugin that formats GraphQL files via Pretty GraphQL.

Install and Setup

In your project's directory with a dprint.json file, run:

dprint config add g-plane/pretty_graphql

This will update your config file to have an entry for the plugin. Then optionally specify a "graphql" property to add configuration:

{
  "graphql": { // not "pretty_graphql"
    // Pretty GraphQL config goes here
  },
  "plugins": [
    "https://plugins.dprint.dev/g-plane/pretty_graphql-vx.x.x.wasm"
  ]
}

Configuration

See Configuration or read full documentation site with code examples.

Playground

See Playground