Migrations
Migration to Pothos from other GraphQL libraries
The following tools can help migrate an existing schema. Review their generated code and adapt the resolvers and application integration to your project.
-
This 3rd party code-mod aims to transform all the nexus types, queries and mutations to Pothos equivalents. This codemod will still require some manual adjustments to get everything working correctly, but can be a huge help in the migration process.
-
This is an undocumented CLI that can convert a schema into valid Pothos code. Resolvers are all placeholders that throw errors, so this is not quite as useful as it sounds, but can be helpful, especially for generating input types.