Unable to find template plugin matching get-schema
SriramJothiswaran opened this issue · comments
In packagae.json
i have the following script for generating schema
"scripts": {
"schema": "graphql get-schema -p prisma"
}
On running npm run schema
i get the
following error
(node:22061) UnhandledPromiseRejectionWarning: Error: Unable to find template plugin matching get-schema
Versions (please complete the following information):
- OS: MacOS
graphql-cli
: ^4.0.0-alpha.18
Thanks for opening the issue.
With the new implementation, get-schema
is no longer available in graphql-cli and we replaced it with a better alternative in our opinion:
We suggest GraphQL CLI users to use GraphQL Code Generator with schema-ast
plugin to have SDL output from a URL endpoint.
We have created a migration guide for the people who are already using graphql-cli 3.x. and added extra special notes for Prisma users:
https://github.com/Urigo/graphql-cli/blob/master/docs/MIGRATION.md#special-notes-for-prisma-users
Please check those instructions and give us your feedback.
We are still in the alpha phase and everything is still changeable!