graphql-cli-codegen icon indicating copy to clipboard operation
graphql-cli-codegen copied to clipboard

What is generator

Open AnselmJeong opened this issue 6 years ago • 0 comments

the command "graphql codegen" produces following error:

"Please specify the 'generator' of codegen extension in your .graphqlconfig"

The .graphqlconfig is as below:

{
  "projects": {
    "prisma": {
      "schemaPath": "src/generated/my.graphql",
      "extensions": {
        "endpoints": {
          "default": "https://us1.prisma.sh/anselm-jeong/prisma/dev"
        },
        "codegen": {
          "target": "typescript",
          "output": "src/generated/prisma.ts"
        }
      }
    }
  }
}

AnselmJeong avatar Oct 28 '18 04:10 AnselmJeong