Gambo
05/24/2019, 4:51 AMFran Dios
05/24/2019, 5:54 AMbkstorm
05/24/2019, 6:28 AMgraphql-shield
.Gambo
05/24/2019, 6:33 AMbkstorm
05/24/2019, 6:34 AMnexus-prisma
, it will generate crud resolvers for you: https://github.com/prisma/nexus-prismaGambo
05/24/2019, 6:36 AMGambo
05/24/2019, 6:36 AMGambo
05/24/2019, 6:38 AMGambo
05/24/2019, 6:58 AMbkstorm
05/24/2019, 7:14 AMnikolasburk
Could you still use the generated client on the front-end as well and point it to the nexus endpoint?That won't work because the Prisma client is not a generic "GraphQL client" (in the sense of Apollo or Relay) but it's a custom client to consume the generated API of a Prisma server. Otherwise your entire understanding is correct 🙂
nikolasburk
Gambo
05/24/2019, 8:54 AMGambo
05/24/2019, 8:55 AMGambo
05/24/2019, 8:55 AMnikolasburk
Frontend (e.g. React + Apollo Client)
↕
GraphQL server (e.g. Apollo Server + GraphQL Nexus + `nexus-prisma` + Prisma client)
↕
Prisma server
↕
Database
Gambo
05/24/2019, 9:01 AMGambo
05/24/2019, 9:03 AMGambo
05/24/2019, 9:03 AM