hello.. am hoping someone can help me. I'm learnin...
# orm-help
c
hello.. am hoping someone can help me. I'm learning Prisma and am trying to regenerate the prisma.graphql file. My course first suggested that we use graphql get-schema -p prisma, but that doesn't work for me? in one of the posts on the lecture it suggested using the npm module get-graph-schema. That worked fine. We've now added security so using the -h 'Authorization: bearer xxxxxxx'. Again, this worked fine the first time, now it keeps telling me I have invalid token. I regenerate the token, still doesn't work. I try the same token in localhost:4466 and it's fine. I'm stumped, appreciate any help
r
Hey @Cam 👋 You’re using an older version of Prisma. I would strongly suggest getting started with Prisma 2 as it’s much easier that Prisma 1. https://www.prisma.io/docs/getting-started/quickstart-node
More reference here. If possible could you tell us that which tutorial are you following currently?
c
Hi... thanks for the reply.  Found another solution.  The tutorial I'm using is a Udemy course. it was from last year I think, this is the course I'm doing https://www.udemy.com/course/graphql-bootcamp/ The Modern GraphQL Bootcamp (Learn Node.js and Apollo) | Udemy Learn and master GraphQL by building real-world Node applications. Use Prisma v1 to store and access data from a production database. Use Apollo Client to communicate with GraphQL from your web app. Learn how to deploy and test your GraphQL applications. Test your skills and gain confidence by ... www.udemy.com
r
Ohh, I would recommend not following that tutorial and to watch these instead. This is with the latest using Prisma 2

https://youtu.be/SvtXgRA7KsE

https://youtu.be/d9v7umfMNkM

https://youtu.be/yuhjO0Nj99U

c
Thanks so much for the reply. I'll have a look at those
🙌 1