Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mongodb raw queries operations and schemas are not getting generated #29

Closed
HananoshikaYomaru opened this issue Aug 18, 2022 · 1 comment · Fixed by #31
Closed

Mongodb raw queries operations and schemas are not getting generated #29

HananoshikaYomaru opened this issue Aug 18, 2022 · 1 comment · Fixed by #31
Assignees
Labels
bug Something isn't working

Comments

@HananoshikaYomaru
Copy link

HananoshikaYomaru commented Aug 18, 2022

image
I think some router are generating some undefined operation. Why does this happens?

My schema is something like this:

// This is your Prisma schema file,
// learn more about it in the docs: https://pris.ly/d/prisma-schema

model Account {
  id                 String  @id @default(auto()) @map("_id") @db.ObjectId
  userId             String  @map("user_id")
  type               String
  provider           String
  providerAccountId  String  @map("provider_account_id")
  refresh_token      String? @db.String
  access_token       String? @db.String
  expires_at         Int?
  token_type         String?
  scope              String?
  id_token           String? @db.String
  session_state      String?

  user User @relation(fields: [userId], references: [id], onDelete: Cascade)

  @@unique([provider, providerAccountId])
  @@map("accounts")
}

model Session {
  id           String   @id @default(auto()) @map("_id") @db.ObjectId
  sessionToken String   @unique @map("session_token")
  userId       String   @map("user_id")
  expires      DateTime
  user         User     @relation(fields: [userId], references: [id], onDelete: Cascade)

  @@map("sessions")
}

model User {
  id            String    @id @default(auto()) @map("_id") @db.ObjectId
  name          String?
  email         String?   @unique
  emailVerified DateTime? @map("email_verified")
  image         String?
  accounts      Account[]
  sessions      Session[]

  @@map("users")
}

model VerificationToken {
  id         String @id @default(auto()) @map("_id") @db.ObjectId
  identifier String
  token      String   @unique
  expires    DateTime

  @@unique([identifier, token])
  @@map("verification_tokens")
}
@omar-dulaimi omar-dulaimi changed the title ![image](https://user-images.githubusercontent.com/43137033/184579330-987346cd-c9a2-4317-81e8-537cd34ef200.png) Mongodb raw queries operations and schemas are not getting generated Aug 19, 2022
@omar-dulaimi omar-dulaimi added the bug Something isn't working label Aug 19, 2022
@omar-dulaimi omar-dulaimi self-assigned this Sep 4, 2022
@omar-dulaimi omar-dulaimi added this to To do in Issues Progress Tracking via automation Sep 4, 2022
@omar-dulaimi omar-dulaimi moved this from To do to In progress in Issues Progress Tracking Sep 4, 2022
@omar-dulaimi omar-dulaimi linked a pull request Sep 5, 2022 that will close this issue
Issues Progress Tracking automation moved this from In progress to Done Sep 5, 2022
@omar-dulaimi
Copy link
Owner

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
No open projects
Development

Successfully merging a pull request may close this issue.

2 participants