format-graphql

JSON →
library 1.5.0 ·javascript
verified Jun 7, 2026

A GraphQL SDL formatter that sorts definitions, fields, arguments, and enums alphabetically (version 1.5.0). It works as both a CLI tool and a Node.js API, with options to control which sorting aspects are applied. Designed for predictable schema organization in large GraphQL projects. Notable differentiator: defaults to sorting all elements alphabetically, unlike prettier which only does basic formatting. Stable release with no recent updates.