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

fix links #6529

Merged
merged 1 commit into from
Dec 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,8 @@ The [`prisma-examples`](https://github.com/prisma/prisma-examples/) repository c

| Demo | Stack | Description |
| :------------------------------------------------------------------------------------------------------------------ | :----------- | --------------------------------------------------------------------------------------------------- |
| [`rest-nextjs-api-routes`](https://pris.ly/e/ts/rest-nextjs-api-routes) | Fullstack | Simple [Next.js](https://nextjs.org/) app (React) with a REST API |
| [`graphql-nextjs`](https://pris.ly/e/ts/graphql-nextjs) | Fullstack | Simple [Next.js](https://nextjs.org/) app (React) with a GraphQL API |
| [`nextjs-api-routes`](https://pris.ly/e/ts/rest-nextjs-api-routes) | Fullstack | Simple [Next.js](https://nextjs.org/) app (React) with a REST API |
| [`nextjs-graphql`](https://pris.ly/e/ts/graphql-nextjs) | Fullstack | Simple [Next.js](https://nextjs.org/) app (React) with a GraphQL API |
| [`graphql-nexus`](https://pris.ly/e/ts/graphql-nexus) | Backend only | GraphQL server based on [`@apollo/server`](https://www.apollographql.com/docs/apollo-server) |
| [`rest-express`](https://pris.ly/e/ts/rest-express) | Backend only | Simple REST API with Express.JS |
| [`express`](https://pris.ly/e/ts/rest-express) | Backend only | Simple REST API with Express.JS |
| [`grpc`](https://pris.ly/e/ts/grpc) | Backend only | Simple gRPC API |
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,8 @@ The [`prisma-examples`](https://github.com/prisma/prisma-examples/) repository c

| Demo | Stack | Description |
| :------------------------------------------------------------------------------------------------------------------ | :----------- | --------------------------------------------------------------------------------------------------- |
| [`rest-nextjs-api-routes`](https://pris.ly/e/ts/rest-nextjs-api-routes) | Fullstack | Simple [Next.js](https://nextjs.org/) app (React) with a REST API |
| [`graphql-nextjs`](https://pris.ly/e/ts/graphql-nextjs) | Fullstack | Simple [Next.js](https://nextjs.org/) app (React) with a GraphQL API |
| [`nextjs-api-routes`](https://pris.ly/e/ts/rest-nextjs-api-routes) | Fullstack | Simple [Next.js](https://nextjs.org/) app (React) with a REST API |
| [`nextjs-graphql`](https://pris.ly/e/ts/graphql-nextjs) | Fullstack | Simple [Next.js](https://nextjs.org/) app (React) with a GraphQL API |
| [`graphql-nexus`](https://pris.ly/e/ts/graphql-nexus) | Backend only | GraphQL server based on [`@apollo/server`](https://www.apollographql.com/docs/apollo-server) |
| [`rest-express`](https://pris.ly/e/ts/rest-express) | Backend only | Simple REST API with Express.JS |
| [`express`](https://pris.ly/e/ts/rest-express) | Backend only | Simple REST API with Express.JS |
| [`grpc`](https://pris.ly/e/ts/grpc) | Backend only | Simple gRPC API |
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,8 @@ The [`prisma-examples`](https://github.com/prisma/prisma-examples/) repository c

| Demo | Stack | Description |
| :------------------------------------------------------------------------------------------------------------------ | :----------- | --------------------------------------------------------------------------------------------------- |
| [`rest-nextjs-api-routes`](https://pris.ly/e/ts/rest-nextjs-api-routes) | Fullstack | Simple [Next.js](https://nextjs.org/) app (React) with a REST API |
| [`graphql-nextjs`](https://pris.ly/e/ts/graphql-nextjs) | Fullstack | Simple [Next.js](https://nextjs.org/) app (React) with a GraphQL API |
| [`nextjs-api-routes`](https://pris.ly/e/ts/rest-nextjs-api-routes) | Fullstack | Simple [Next.js](https://nextjs.org/) app (React) with a REST API |
| [`nextjs-graphql`](https://pris.ly/e/ts/graphql-nextjs) | Fullstack | Simple [Next.js](https://nextjs.org/) app (React) with a GraphQL API |
| [`graphql-nexus`](https://pris.ly/e/ts/graphql-nexus) | Backend only | GraphQL server based on [`@apollo/server`](https://www.apollographql.com/docs/apollo-server) |
| [`rest-express`](https://pris.ly/e/ts/rest-express) | Backend only | Simple REST API with Express.JS |
| [`express`](https://pris.ly/e/ts/rest-express) | Backend only | Simple REST API with Express.JS |
| [`grpc`](https://pris.ly/e/ts/grpc) | Backend only | Simple gRPC API |
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,8 @@ The [`prisma-examples`](https://github.com/prisma/prisma-examples/) repository c

| Demo | Stack | Description |
| :------------------------------------------------------------------------------------------------------------------ | :----------- | --------------------------------------------------------------------------------------------------- |
| [`rest-nextjs-api-routes`](https://pris.ly/e/ts/rest-nextjs-api-routes) | Fullstack | Simple [Next.js](https://nextjs.org/) app (React) with a REST API |
| [`graphql-nextjs`](https://pris.ly/e/ts/graphql-nextjs) | Fullstack | Simple [Next.js](https://nextjs.org/) app (React) with a GraphQL API |
| [`nextjs-api-routes`](https://pris.ly/e/ts/rest-nextjs-api-routes) | Fullstack | Simple [Next.js](https://nextjs.org/) app (React) with a REST API |
| [`nextjs-graphql`](https://pris.ly/e/ts/graphql-nextjs) | Fullstack | Simple [Next.js](https://nextjs.org/) app (React) with a GraphQL API |
| [`graphql-nexus`](https://pris.ly/e/ts/graphql-nexus) | Backend only | GraphQL server based on [`@apollo/server`](https://www.apollographql.com/docs/apollo-server) |
| [`rest-express`](https://pris.ly/e/ts/rest-express) | Backend only | Simple REST API with Express.JS |
| [`express`](https://pris.ly/e/ts/rest-express) | Backend only | Simple REST API with Express.JS |
| [`grpc`](https://pris.ly/e/ts/grpc) | Backend only | Simple gRPC API |
Original file line number Diff line number Diff line change
Expand Up @@ -146,10 +146,8 @@ You can find several ready-to-run examples that show how to implement a REST API

| **Example** | **Stack** | **Description** |
| ----------------------------------------------------------------------------------------------------------------------------- | ------------ | ---------------------------------------------- |
| [`rest-express`](https://pris.ly/e/ts/rest-express) | Backend only | REST API with Express for TypeScript |
| [`rest-fastify`](https://pris.ly/e/ts/rest-fastify) | Backend only | REST API using Fastify and Prisma Client. |
| [`rest-hapi`](https://pris.ly/e/ts/rest-hapi) | Backend only | REST API using hapi and Prisma Client |
| [`rest-nestjs`](https://pris.ly/e/ts/rest-nestjs) | Backend only | Nest.js app (Express) with a REST API |
| [`rest-nextjs-express`](https://pris.ly/e/ts/rest-nextjs-express) | Fullstack | Next.js app (React, Express) and Prisma Client |
| [`rest-nextjs-api-routes`](https://pris.ly/e/ts/rest-nextjs-api-routes) | Fullstack | Next.js app (React) with a REST API |
| [`rest-nextjs-api-routes-auth`](https://pris.ly/e/ts/rest-nextjs-api-routes-auth) | Fullstack | Implement authentication using NextAuth.js |
| [`express`](https://pris.ly/e/ts/rest-express) | Backend only | REST API with Express for TypeScript |
| [`fastify`](https://pris.ly/e/ts/rest-fastify) | Backend only | REST API using Fastify and Prisma Client. |
| [`hapi`](https://pris.ly/e/ts/rest-hapi) | Backend only | REST API using hapi and Prisma Client |
| [`nestjs`](https://pris.ly/e/ts/rest-nestjs) | Backend only | Nest.js app (Express) with a REST API |
| [`nextjs-api-routes`](https://pris.ly/e/ts/rest-nextjs-api-routes) | Fullstack | Next.js app (React) with a REST API |
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,6 @@ You can find several ready-to-run examples that show how to fullstack apps with
| [Next.js (API Routes)](https://pris.ly/e/ts/rest-nextjs-api-routes) | Fullstack Next.js app using `getServerSideProps` & API Routes |
| [Next.js (GraphQL)](https://pris.ly/e/ts/graphql-nextjs) | Fullstack Next.js app using GraphQL Yoga, Pothos, & Apollo Client |
| [Next.js (tRPC)](https://pris.ly/e/ts/trpc-nextjs) | Fullstack Next.js app using tRPC |
| [Next.js (API Routes with auth)](https://pris.ly/e/ts/rest-nextjs-api-routes-auth) | Fullstack Next.js app using `getServerSideProps`, API Routes, & [NextAuth](https://next-auth.js.org/) |
| [Remix](https://pris.ly/e/ts/remix) | Fullstack Remix app using actions and loaders |
| [SvelteKit](https://pris.ly/e/ts/sveltekit) | Fullstack Sveltekit app using actions and loaders |
| [Nuxt (REST API)](https://pris.ly/e/ts/rest-nuxtjs) | Fullstack Nuxt app using API routes |
| [Nuxt](https://pris.ly/e/ts/rest-nuxtjs) | Fullstack Nuxt app using API routes |
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ If this is not what your project structure looks like, you'll need to adjust the

## 1. Adjust the application to use Prisma Client 2

For the purpose of this guide, we'll use the sample API calls from the [`rest-express`](https://github.com/prisma/prisma1-examples/tree/master/typescript/rest-express) example in the [`prisma1-examples`](https://github.com/prisma/prisma1-examples/) repository.
For the purpose of this guide, we'll use the sample API calls from the [`express`](https://github.com/prisma/prisma1-examples/tree/master/typescript/rest-express) example in the [`prisma1-examples`](https://github.com/prisma/prisma1-examples/) repository.

The application code in our example is located in a single file and looks as follows:

Expand Down
Loading