hi im trying to figure out how to update many to m...
# orm-help
w
hi im trying to figure out how to update many to many relations. this is my schema
Copy code
type Product @model {
  id: ID! @unique
  objectID: String! @unique
  title: String!
  vendor: String
  productType: String
  categories: [String!]!
  hierarchicalCategories: Json
  createdAt: DateTime!
  updatedAt: DateTime!
  productTags: [String!]!
  price: Float
  priceRange: String
  productImage: String
  handle: String
  sites: [Site!]! @relation(name: "SitesProducts")
}

type Site @model {
  id: ID! @unique
  createdAt: DateTime!
  name: String!
  posts: [Post!]! @relation(name: "SiteOnPost")
  products: [Product!]! @relation(name: "SitesProducts")
  template: String
  user: User! @relation(name: "UserOnSite")
}