what would be the preferred way to store additiona...
# orm-help
m
what would be the preferred way to store additional data for a specific combination of entities from two Models (Tables) in the schema? I mean how to store more specific information for entiy A with id X when it's related to entiy B with id Y?
n
a "through model"
m
Copy code
type ThroughModel @model {
  id: ID! @isUnique
  activated: Boolean!
  AModel: A! @relation(name: "ARelation")
  BModel: B! @relation(name: "BRelation")
}
you mean, something like that?
n
yup
m
ok, then I was on the right track, but I seemd like some of the default generated mutations was not generated for that combination so I thought I was doing something wrong 😛
thanks. 🙂
👍 1