How To Change SQLite To MongoDB Database after creating app using CLI 3.0 with Remix Template?

Kapil2022
Shopify Partner
9 0 3
In my schema.prisma file I have made some chenges as per the Shopify and prisma documentation

datasource
db {
  provider = "mongodb"
  url      = env("DATABASE_URL")
}
 
generator client {
  provider = "prisma-client-js"
}
 
model Session {
  id          String    @id @default(auto()) @map("_id") @db.ObjectId
  shop        String
  state       String
  isOnline    Boolean   @default(false)
  scope       String?
  expires     DateTime?
  accessToken String
  userId      Int?
}

I entered the DATABASE_URL also as per the documentation but still I'm not able to migrate to MongoDB
Replies 2 (2)

larry820
Shopify Partner
6 0 3

I have the same problem and I've been trying to find a solution for 2 days already 😥

You get this Error: The "mongodb" provider is not supported with this command. ????