Mark relations as required

WHAT DO YOU RECOMMEND

When creating a type and adding relations, it would be good to have the ability to mark some relations as required.

HOW COULD IT BE DONE

If the user tried to create an object and left the required relation empty, there would be a visual warning (red background, for example) to indicate the required relation value is empty. Alternatively, a strict implementation could prevent the object from being created at all if is missing required relations.

REAL WORLD USE CASES

If I was using Anytype for task management, for example, all tasks need someone to own the task, so it is not forgotten or orphaned. In this example, I would make the ‘assigned’ relation ‘required’.

RECOMMENDED ALTERNATIVES

Nil

ADDITIONAL CONTEXT

Nil

I’d like to add that there should be a way to find required relations that have been left empty in a central place. Would be very useful if I had an existing type with lots of instances, and about half of them had a relation filled in, and I decided that that relation now needed to be required. I’d be set, because Anytype would just give me the list to go through one-by-one.

I mean, yeah, you can make a set and filter with it. But you have to remember to do that.

1 Like