Skip to content

💎 An experiment using Prisma and MongoDB.

License

Notifications You must be signed in to change notification settings

OmaigatTER/prisma-mongodb-ts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Prisma + MongoDB + TypeScript

An experiment using Prisma and MongoDB.

Flow

  • Create an user
  • Update the user (getting the id from the previously created one)
  • Finding all users
  • Deleting all users

Schema

datasource db {
  provider = "mongodb"
  url = env("MONGODB_URL")
}

generator client {
  provider = "prisma-client-js"
}

model User {
  id String @id @default(auto()) @map("_id") @db.ObjectId
  username String
}

About

💎 An experiment using Prisma and MongoDB.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published