I already completed a project with UI and backend ...
# orm-help
j
I already completed a project with UI and backend [ no DB part ] with AngularJS and Node + Apollo Graphql server. Now I created a prisma DB and got auto generated queries and mutation. So I want to connect both projects [ Apollo server project and Prisma project ]. From your link above i understood that they put actual business schema in schema.graphql and resolvers are created manually by connecting DB. So do i need to include all my resolvers and business parts of my Apollo project to the /SRC folder of Prisma project for integration. Or vice versa.
n
yep, the actual business schema is in
schema.graphql
. For example, you can put a
feed
query in there. In the
feed
resolver, you can use the automatically generated resolvers from Prisma using
prisma-binding
to implement that logic. Example: https://github.com/graphql-boilerplates/node-graphql-server/blob/master/advanced/src/resolvers/Query.js#L4-L6
So do i need to include all my resolvers and business parts of my Apollo project to the /SRC folder of Prisma project for integration. Or vice versa.
Not sure I get this 🤔