Skip to content

Latest commit

 

History

History
24 lines (16 loc) · 848 Bytes

README.md

File metadata and controls

24 lines (16 loc) · 848 Bytes

Demystifying the info object in GraphQL resolvers

Usage

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 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.