Hi All. I need your help. I have relation between ...
# prisma-whats-new
j
Hi All. I need your help. I have relation between User and Project. How could I update Users`s project? I think that I need to use connect and disconnect
h
Do you use prisma? What relation do you have? 1:1?
j
Hi. Yes latest Prisma. It is 1:1 but this relation is optional
no sorry it is 1:N
Copy code
type Task {
  id: ID! @unique
  title: String!
  company: Company @relation(name: "CompanyOnTask")
}


type Company {
  id: ID! @unique
  name: String!
  tasks: [Task!]!
}
During the update task I want to set up some Company. Then I want to change company or disconnect it
Copy code
const data = {
      title,
      company: {}, // ??
    };

    return ctx.db.mutation.updateTask(
      {
        where: { id },
        data,
      },
      info,
    );