Let's say I have a teams collection that has a field called members which is a relationship field to users. As far as I understand it I can add new members like this
await payload.update({
collection: 'teams',
id: teamId,
data: {
members: [...existingMembers, newUserId],
},
});
is there a better way? Do I need to fetch existing members whenever I need to add to or remove from members ?