Clément Fassot
06/04/2019, 12:00 PM@query('HR Management') @mutation('Management')
). A developer would then just need to produce a datamodel for prisma with the right directives. At first we thought about doing a gateway that stitches a list of schemas automatically, but with recent announces of Apollo federation/gateway and the fact that prisma will soon no longer need a prisma server to do its magic we're forced to reassess things.
I think we could deploy an apollo federation service for each "backend" we provide, this service uses the datamodel of prisma as its graphql schema. Problem is we need to generate the resolvers, or have the developer write them (would be very easy but quite long sometimes). Or we could do a CLI that generates them using the datamodel and prisma client.
What do you guys think ? Have anyone of you been in this situation before where you want to generate resolvers automatically based on a datamodel ?Austin Howlett
06/04/2019, 4:20 PM