Panic
Panic
Explore posts from servers
KKinde
Created by Panic on 10/13/2024 in #💻┃support
Using Prisma to MongoDB With Kinde
I've resolved the problem by changing to a postgres db however now when I have the app running and I sign in, I get a http error 500. @Claire_Kinde any suggestions? Much appreciated
7 replies
PPrisma
Created by Panic on 10/13/2024 in #help-and-questions
Kinde + Prisma ORM
It looks like whatever the first item is in data when I try to create the user is getting the error, so not just the ID. here is the schema.prisma from the generated file // This is your Prisma schema file, // learn more about it in the docs: https://pris.ly/d/prisma-schema // Looking for ways to speed up your queries, or scale easily with your serverless or edge functions? // Try Prisma Accelerate: https://pris.ly/cli/accelerate-init generator client { provider = "prisma-client-js" output = "./generated/client" } datasource db { provider = "mongodb" url = env("DATABASE_URL") } model User { id String @id @default(auto()) @map("_id") @db.ObjectId email String? @unique firstName String? lastName String? kindeId String? @unique posts Post[] createdAt DateTime @default(now()) updatedAt DateTime @updatedAt } model Post { id String @id @default(auto()) @map("_id") @db.ObjectId title String published Boolean @default(false) author User @relation(fields: [authorID], references: [id]) authorID String @map("author_id") @db.ObjectId name String age String email String phone String sleepHours String studyHours String activeDays String stress String sport String wearable String screenTime String fitnessGoals String academicGoals String updatedAt DateTime @updatedAt createdAt DateTime @default(now()) }
5 replies
PPrisma
Created by Panic on 10/13/2024 in #help-and-questions
Kinde + Prisma ORM
I did
5 replies
KKinde
Created by Panic on 10/13/2024 in #💻┃support
Using Prisma to MongoDB With Kinde
7 replies