This repository has been archived by the owner on Dec 8, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 54
Enums in prisma generated file are not being picked up #197
Comments
Hey there, Could you please provide us your Thanks |
# The target programming language for the generated code
language: typescript
# The file path pointing to your GraphQL schema
schema: ./src/schema.graphql
# Type definition for the resolver context object
context: ./src/types.ts:Context
# Map SDL types from the GraphQL schema to TS models
models:
files:
- path: ./src/generated/prisma-client
defaultName: '${typeName}Node'
- ./src/types.ts
# Generated typings for resolvers and default resolver implementations
# Please don't edit this file but just import from here
output: ./src/generated/graphqlgen.ts
# Temporary scaffolded resolvers to copy and paste in your application
resolver-scaffolding:
output: ./src/generated/tmp-resolvers/
layout: file-per-type |
I'm having the same problem. Anyway to deal with enum? it might because of this
enum does not have |
I am also having the same problem with enums. More info here |
This will be fixed with #244 |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Description
Enums in prisma generated file are not being picked up. My understanding is that it should also pick them from the prisma generated files and generate them for the resolvers as typescript enums.
Steps to reproduce
Add a
PostType
enum to the example https://github.com/prisma/prisma-examples/tree/master/typescript-graphql-auth./prisma/enums.graphql
./prisma/prisma.yml
Generate prisma files
Import enum in
schema.graphql
# import * from '../prisma/enums.graphql'
Run
Expected results
Resolvers and enums are generated without errors
Actual results
Versions
The text was updated successfully, but these errors were encountered: