method

PolymorphicRelationshipsField.PrependHooks

PrependHooks inserts supplied callbacks before existing callbacks in each phase.

Arguments

ArgumentTypeDescription
valueHooks[store.Value]The value value.

Returns

The declared result.

PolymorphicRelationshipsField

Full signature

Related types

  • PolymorphicRelationshipsField

    PolymorphicRelationshipsField configures links to documents from any of the target collections.

  • Hooks

    Hooks registers transforms and event callbacks for one field's stored value. Each list runs in declaration order for each field occurrence, including nested array rows. Collection or global hooks run first in the same phase, except AfterCommit, where field callbacks run first.

  • Value

    An immutable scalar, object, list, or populated document value.