No description, website, or topics provided.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
database
src
.gitignore
.graphqlconfig.yml
README.md
package.json
yarn.lock

README.md

Demystifying the info object in GraphQL resolvers

Usage

git clone git@github.com: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 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:

yarn install
yarn dev

More info

For more information about this example, read the accompanying blog post.