How do you all import your types from `datamodel.p...
# orm-help
l
How do you all import your types from
datamodel.prisma
into
schema.graphql
so I don’t need to re write them ?
g
Schema.graphql:
Copy code
# import YourType from "../generated/prisma.graphql"
In prisma.yml
Copy code
# Generate
generate:
  - generator: graphql-schema
    output: ../src/generated/
d
The package that makes this happen :- https://github.com/prisma/graphql-import If you are using yoga, then this works by default as yoga uses
graphql-import
internally