One approach to adopting Gratos gradually.

Gradually annotate

First, add Gratos docblocks to your code, adding your types, fields and so on. Do as little or as much at a time as you want. Gratos annotations have no runtime effect, so these changes are trivially safe. You may find places where your types are not explicit enough for Gratos: there you may need more annotations, refactors, or explicit definitions of types that were implicit.

After each batch of annotations or refactors, run gratos to see whether it reports errors.

Validate

As you get close to annotating all your types and fields, compare the schema Gratos extracts with your existing schema, with graphql-schema-diff: run gratos, then npx graphql-schema-diff --fail-on-all-changes --sort-schema path/to/existing/schema.gql ./schema.graphql.

That gives you a to-do list: the types that still need annotations, and the places where names or types don't match.

Use Gratos' schema

Once no meaningful difference remains, try switching to the schema Gratos generates. For example, test the new schema by hand, and once you are confident it behaves like the legacy schema, ship it to production behind a feature flag. Once the switch is made without errors, delete your old schema, and use the SDL and the executable TypeScript schema Gratos generates.

From then on, add a CI step that ensures every change to your code that changes the schema is committed. See Workflows.