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
Navin
04/26/2022, 5:11 AM
Model User { firsName: String! }
Type UserGQL { name : String! }
For example.
m
Mischa
04/26/2022, 7:43 AM
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