An object used to reference a resource's parent resource.
Parent references are used to keep track of a resource's parents, such as which topics a drop belongs to.
Property | Type | Description |
---|---|---|
type* | string | The parent type, such as 'topic'. |
id* | string | The parent resource ID. |
A drop with two parent topics (other fields ommited).
const drop = {
// ...
parents: [
{ type: 'topic', id: '9315f3d2-71ff-420f-8e28-2e1da4812126' },
{ type: 'topic', id: '557824ae-0219-46aa-a669-9afef7f07096' },
],
};