Hi everyone,
either I haven’t read the spec properly or there is no information about this:
Say I have this data structure:
{
campaign: "some-id",
related_to: { typeof_relation: 'verwandt', event_id: '0' },
attendees: [ { kickoff: true, user: 'some-id' } ],
supervisors: [ '1bef28cf-ef32-4e20-a353-12d42ad6dcf2' ]
}
Would attendees in this case be a relationship? or just an attribute?
I know that the supervisors relationship would look like this:
"relationships": {
"supervisors": {
"data": [
{
"type": "people",
"id": "1bef28cf-ef32-4e20-a353-12d42ad6dcf2"
}
]
}
}
Is it possible to represent the attendees which are stored with an additional kickoff
boolean value as a relationship? Or are they simply attributes even though user
is a different resource?
Should attendee
be another resource (mongodb collection)?