Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tutorial out of date: End-To-End Type-Safety with GraphQL, Prisma & React #5489

Open
bambery opened this issue Nov 11, 2023 · 2 comments
Open

Comments

@bambery
Copy link

bambery commented Nov 11, 2023

I couldn't track down if the content on the prisma website's blog/tutorials is in the github or not, so I can't offer a PR.

This tutorial, "End-To-End Type-Safety with GraphQL, Prisma & React", featured as the third "Learn Prisma" link on this page: https://www.prisma.io/learn is out of date.

This tutorial works fine until part 3, and then it has issues immediately: https://www.prisma.io/blog/e2e-type-safety-graphql-react-3-fbV2ZVIGWg

graphql-yoga syntax has changed since this was written. Graphql-yoga no longer recommends installing @graphql-yoga/node anymore, it is not possible to import { createServer } from "graphql-yoga/node" any longer, etc. I see other code examples in this repo using the newly updated syntax, but the very first thing I did when attempting to evaluate whether or not I would use Prisma in my project has given me a tutorial which can't be completed as written.

Are there better/more up to date tutorials for Prisma aside from the ones linked to from the main site? I am extremely new to Prisma and don't have a sense of where is better to look.

Part 4 also appears to be out of date with the usage of urql, which requires importing cacheExchange and fetchExchange and passing an exchanges param to createClient

@bambery bambery changed the title tutorial out of date: End-To-End Type-Safety with GraphQL, Prisma & React: Frontend tutorial out of date: End-To-End Type-Safety with GraphQL, Prisma & React Nov 12, 2023
@ruheni
Copy link
Contributor

ruheni commented Nov 29, 2023

👋 @bambery

Thanks for reporting this and sharing the details on what isn't working. We'll update the tutorials soon enough to make it functional. 🙂

Are there better/more up to date tutorials for Prisma aside from the ones linked to from the main site? I am extremely new to Prisma and don't have a sense of where is better to look.

The tutorials on prisma.io/learn should still be relevant, aside from the minor hick-up you ran into. Is there any particular content you would be interested in? 🙂

@bambery
Copy link
Author

bambery commented Nov 30, 2023

Thanks for replying. I was looking for a tutorial on exactly this, what a React/Prisma integration might look like. While I did complete this tutorial, I ended up finding some tutorials on other people's blogs that demonstrate more complex integrations. I have them still open in another tab and haven't yet gotten to them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants