Nelson Pecora
09/09/2019, 7:42 PMNelson Pecora
09/09/2019, 7:44 PMContent
, which can be attached to other Content
. So, in my data model:
type Content {
attachments: [Content!]! @relation(name: "AttachedContent")
}
Nelson Pecora
09/09/2019, 7:45 PMattachments
Nelson Pecora
09/09/2019, 7:46 PMNelson Pecora
09/09/2019, 7:46 PMattachments
and attachedTo
, and then merge them together at the api layer?)Nelson Pecora
09/11/2019, 3:27 AMattachedTo
and attachedFrom
. I'm serving them in my api, as well as an (api only) attachments
field that combines both. My clients that need to edit attachments will have to use the individual fields (which isn't too onerous), while my read-only clients can look at the combined field