Member Junction
    Preparing search index...

    Function OmitFieldsUnreadableByActiveUser

    • Returns values without the keys entity's own user may not read, for a payload built from that entity and sent to another tier (a graph save, a companion's wire form).

      The object already holds no denied value (its hydration points and NewRecord leave such fields not loaded), so GetAll() normally omits them by itself. This is the backstop for a key put back on the object without the readability check, which SetMany permits: the receiving tier refuses a restricted caller's input that names a field they may not read, so sending one fails the whole save.

      Returns the original object when nothing was removed, and a shallow copy otherwise.

      Type Parameters

      • T extends object

      Parameters

      Returns T