Hey guys, I'm trying to migrate to prisma, and I'v...
# prisma-whats-new
m
Hey guys, I'm trying to migrate to prisma, and I've a very frustrating issue when trying to connect Apollo to the local server. The doc is not crystal clear about this, as it gives contradictory info regarding which uri to use. So: 1) I'm able to use the playground properly, both for app and database 2) When trying to connect Apollo to the server (localhost:4000), I get a 400 error (bad request) 3) If I follow the doc here https://github.com/graphcool/prisma/blob/master/docs/1.1/01-Quickstart/03-Frontend/01-React/01-Apollo.md it says I should use the HTTP endpoint obtained when executing
prisma deploy
, but it's the DB endpoint... so I don't have access to my resolvers.
m
@mv are you using
graphql-yoga
? Here's a good starting point https://www.howtographql.com/graphql-js/1-getting-started/
m
Yes. Thanks for this, but I know the concept quite well already 🙂 But I'm on a lead, this issue might be caused by an old graphcool piece of code... let's see.
n
@mv, the link you mentioned in the original post explains how to directly connect from the frontend to Prisma. It sounds like that's not what you are after, as you're using
graphql-yoga
in between.
👍 1
m
yep agreed. Was thinking the same thing
m
Right, I managed to connect to Prisma server, I actually misinterpreted the 400 error. thanks guys, I need to do a little pause!...
🙏 1
n
all good 🙂 get your pause!
👍 1