Urigo / graphql-cli

📟 Command line tool for common GraphQL development workflows

Home Page:https://graphql-cli.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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
Screenshot 2019-10-30 at 5 13 34 PM
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

Hi @SriramJothiswaran

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!