Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nikolasburk/info-prisma-example
https://github.com/nikolasburk/info-prisma-example
Last synced: 25 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/nikolasburk/info-prisma-example
- Owner: nikolasburk
- Created: 2018-02-06T10:14:24.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-02-06T10:22:47.000Z (almost 7 years ago)
- Last Synced: 2024-10-09T19:04:02.483Z (about 1 month ago)
- Language: JavaScript
- Size: 44.9 KB
- Stars: 6
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Demystifying the `info` object in GraphQL resolvers
## Usage
```sh
git clone [email protected]:nikolasburk/info-prisma-example.git
cd info-prisma-example
prisma deploy
```After you deployed the Prisma service, you need to replace the `__PRISMA_ENDPOINT__` placeholder in [`src/index.js`](./src/index.js#L41) with the endpoint that was printed in the output of the `prisma deploy` command.
Note that `prisma deploy` also executes the mutation defined in `database/seed.graphql` so your service will be seeded with initial data.
You can then run the following commands to start the server and open a Playground:
```sh
yarn install
yarn dev
```## More info
For more information about this example, read the accompanying [blog post](https://blog.graph.cool/graphql-server-basics-demystifying-the-info-object-in-graphql-resolvers-21e1657f09d4).