Where unique input does not include other types


When I create a unique field on a type, it does not work if the type is another object. In other words

type Owner {
  id: ID! @id
  user: User! @unique
  companies: [Company!]!

Will yield

type OwnerWhereUniqueInput {
  id: ID

But I want to be able to get the owner by the user’s username.



Did you run prisma deploy and prisma generate?

If yes, this is a bug, please open a new github issue about.