What’s the best way or suggested approach to map p...
# prisma-client
n
What’s the best way or suggested approach to map prisma data models to graphql types? I’m considering having pure functions acting as mappers that are testable, but first curious if there is something that I can already use. Thanks in advance
Model User { firsName: String! } Type UserGQL { name : String! } For example.
m
i wouldn't really recommend this approach for a Serious Project, but if you want to do it there is for example prisma-appsync i would suggest writing your own gql schemas though