meshql-codemods (@meshql/codemods)
GraphQL SDL → MeshQL schema migration (0.2.0).
Install
Section titled “Install”npm install meshql-codemods# ornpx jsr add @meshql/codemodsnpx meshql-codemod graphql-sdl ./schema.graphql --out ./meshql-migrationWrites schema.ts, resolvers.ts, and migration-report.json.
Programmatic
Section titled “Programmatic”import { migrateGraphqlSdl } from "@meshql/codemods";
const { schema, schemaSource, report, resolverStubs } = migrateGraphqlSdl(sdl);See From GraphQL for the full migration guide.