Boilerplate to get you started with Gqlgen and prisma.
brew tap prisma/prisma
brew install prisma
Alternative: Install with NPM or Yarn
npm install -g prisma
# or
yarn global add prisma
Run the following command to setup Prisma
docker-compose up
To deploy your Prisma API, run the following command:
prisma deploy
Run the following command to ensure GO dependencies are installed:
dep ensure
Build any necessary graphql files using gqlgen (this isn't quite working):
go generate ./...
To rebuild stubs, remove internal/build/gqlgen/.resolver_stubs.go
and run:
go run scripts/gqlgen.go -v
Now execute the script with the following command:
go run cmd/gqlgen-prisma-boilerplate/main.go