Skip to content

Latest commit

 

History

History
39 lines (25 loc) · 1.06 KB

File metadata and controls

39 lines (25 loc) · 1.06 KB

Prisma Multiple Datasources

This repository demonstrates the monorepo structure outlined by @dfee that allows using multiple Prisma clients in a single project.

There are two different example packages:

  • packages/consumer - Simple example with Node
  • packages/apollo-nexus - Complex example with Apollo Server and Nexus

Installation

Requirements:

  • yarn

Execute the following:

git clone https://github.com/m-leon/prisma-multi-datasources-example.git
cd prisma-multi-datasources-example
yarn
cd packages/db-one
yarn prisma db push --preview-feature
cd ../db-two
yarn prisma db push --preview-feature

Usage

  • cd packages/consumer OR cd packages/apollo-nexus
  • yarn dev

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

MIT