Hey, Considering this schema: ```model Questionna...
# orm-help
b
Hey, Considering this schema:
Copy code
model Questionnaire {
  id             Int             @id @default(autoincrement())
  title          String
  description    String
  maxLength      Int?
  validationType String
  media          Json
  sequence       Int          @unique
  userQuestions  UserQuestions[]
}

model UserQuestions {
  id            Int           @id @default(autoincrement())
  answer        String?

  uid          String
  questionnaireId Int?
  
  user          User          @relation(fields: [uid], references: [id])
  questionnaire Questionnaire? @relation(fields: [questionnaireId], references: [id])
}
I'm trying to createMany UserQuestions entries. But when I try to connect them to the Questionnaire it doesn't recognize "questionnaire" on the UserQuestions model. Code:
Copy code
prisma.userQuestions.createMany({
  data: [
    {
      uid,
      questionnaire: {
        connect: {
          sequence: 1,
        },
      },
    },
    {
      uid,
      questionnaire: {
        connect: {
          sequence: 2,
        },
      },
    },
    {
      uid,
      questionnaire: {
        connect: {
          sequence: 3,
        },
      },
    },
  ],
});
Error:
Copy code
Unknown arg `questionnaire` in data.0.questionnaire for type UserQuestionsCreateManyInput. Did you mean `questionnaireId`? Available args:
type UserQuestionsCreateManyInput {
  id?: Int
  answer?: String | Null
  uid: String
  questionnaireId?: Int | Null
}
Am I not supposed to be able to run the "connect" parameter here?
r
@Bård 👋 Unfortunately this isn’t supported at the moment. It would be great if you could add a 👍 to this request so that we know the priority 🙂