refOptions

molecule.base.api.DataModelApi.refOptions
trait refOptions[Self] extends Requierable

Attributes

Source
DataModelApi.scala
Graph
Supertypes
trait Requierable
class Object
trait Matchable
class Any
Known subtypes
trait many
object many.type
trait one
object one.type

Members list

Value members

Concrete methods

def apply[RefNs](implicit x: DummyImplicit): refOptions[Self]

Apply namespace type to reference.

Apply namespace type to reference.

Type parameters

RefNs

Ref namespace type

Attributes

Source
DataModelApi.scala
def apply[RefNs](description: String): refOptions[Self]

Attributes

Source
DataModelApi.scala
def require(attrs: Requierable*): Self

Attributes

Source
DataModelApi.scala

Concrete fields

lazy val mandatory: Self

Attributes

Source
DataModelApi.scala
lazy val owner: Self

Owner option.

Owner option.

This entity owns the referenced entity/entities.

  • If this entity is deleted, its references are deleted too (and recursively if sub entities have owned entities!)



Specifies that an attribute whose type is :db.type/ref is a component.

Referenced entities become subcomponents of the entity to which the attribute is applied.

When you retract an entity with :db/retractEntity, all subcomponents are also retracted.

When you get the graph of an entity, all its subcomponent entities are fetched recursively.

Attributes

Source
DataModelApi.scala