Skip to content

m-leon/prisma-multi-datasources-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages