rsnext/examples/with-relay-modern/package.json
Flavian Desverne f9cb5ac6b0
Replace Graphcool with dedicated example GraphQL server using Prisma (#15752)
## 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
2020-08-05 06:26:54 +00:00

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"
}
}