Geebrox
05/19/2022, 11:26 AMtype object in the schema file? It doesn’t include type in the generated schema.
session.model.schema:
datasource db {
provider = "mongodb"
url = env("DATABASE_URL")
}
model Session {
id String @id @default(auto()) @map("_id") @db.ObjectId
sessionId String @unique
shop String
state String
isOnline Boolean
scope String
expires DateTime?
accessToken String
onlineAccessInfo SessionOnlineAccessInfo?
}
type SessionOnlineAccessInfo {
expires_in Int
associated_user_scope String
associated_user SessionAssociatedUser
}
type SessionAssociatedUser {
id Int
first_name String
last_name String
email String
email_verified Boolean
account_owner Boolean
locale String
collaborator Boolean
}
Generated schema file (aurora):
// ◮◮◮ GENERATED BY AURORA ◮◮◮
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
sessionId String @unique
shop String
state String
isOnline Boolean
scope String
expires DateTime?
accessToken String
onlineAccessInfo SessionOnlineAccessInfo?
}Richard Ward
05/19/2022, 11:38 AMtype is currently only available for mongodb .. but let me double check that quick ..Richard Ward
05/19/2022, 11:40 AMComposite types are currently only available on MongoDB.Geebrox
05/19/2022, 11:40 AMRichard Ward
05/19/2022, 11:40 AMRichard Ward
05/19/2022, 11:40 AMRichard Ward
05/19/2022, 11:42 AMSessionOnlineAccessInfo but doesn't create it ..Geebrox
05/19/2022, 11:43 AMSabin Adams
05/19/2022, 7:00 PMtype keyword currently isn't supported in aurora. Working on some updates that should add it in but for now those won't work 😢Geebrox
05/19/2022, 7:11 PMSabin Adams
05/19/2022, 7:14 PMv1.3.9. Let me know if you're still seeing the problem.Geebrox
05/19/2022, 7:21 PMv1.3.9 and no more bin issues, thank you