ParentReference

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.

PropertyTypeDescription
type*stringThe parent type, such as 'topic'.
id*stringThe 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' },
],
};