I have a collection with a media field
// media collection
{
slug: "media",
fields: [
{ name: "parentCollection", type: "text" }
]
}
// User collection
{
slug: "users",
fields: [
{ name: "photo", relationTo: "media" }
]
on the admin screen when i create a new user i want to upload a photo, and when i upload a photo i know it goes into the media collection, but how would I populate the parentCollection field automatically so it references "users"?