prisma-labs/graphqlgen

Add model default name configuration option

Closed this issue · 1 comments

The default assumption is that a model has the same name as the GraphQL type. In some code bases there is a different default name, so this should be configurable via the following configuration option:

models:
  defaultName: "{typeName}Node"
  files:
    - ./src/generated/prisma-client

Released in 0.2.8