f9cb5ac6b0
## Motivation As Graphcool is being shutdown, we replaced all the graphcool api endpoints with some handcrafted APIs using Prisma & Nexus, that can be found here https://github.com/prisma-labs/nextjs-graphql-api-examples. These GraphQL endpoints are now deployed to Vercel. ## Notes - I couldn't get the reason-relay example to run. Given that the relay endpoint works on the other relay example, I don't see any reason why it wouldn't work on that one - The `with-apollo` example is buggy when creating some posts, but nothing related to the switch of the api endpoint as it was already buggy before. I suspect the `concatPagination` strategy to be the cause of that bug, but I couldn't figure it out. Fixes #14780
25 lines
727 B
JSON
25 lines
727 B
JSON
{
|
|
"name": "with-relay-modern",
|
|
"version": "1.0.0",
|
|
"description": "Example of Next.js with Relay Modern",
|
|
"scripts": {
|
|
"dev": "next",
|
|
"build": "next build",
|
|
"start": "next start",
|
|
"relay": "relay-compiler --src ./ --exclude '**/.next/**' '**/node_modules/**' '**/test/**' '**/__generated__/**' --exclude '**/schema/**' --schema ./schema/schema.graphql",
|
|
"schema": "graphql get-schema -e dev"
|
|
},
|
|
"license": "ISC",
|
|
"dependencies": {
|
|
"graphql": "^14.6.0",
|
|
"next": "latest",
|
|
"react": "^16.13.0",
|
|
"react-dom": "^16.13.0",
|
|
"react-relay": "^9.0.0"
|
|
},
|
|
"devDependencies": {
|
|
"babel-plugin-relay": "^9.0.0",
|
|
"graphql-cli": "^3.0.14",
|
|
"relay-compiler": "^9.0.0"
|
|
}
|
|
}
|