prorm API Reference
    Preparing search index...

    Function applyEncryptionHooks

    • Wire beforeSave and afterFind hooks onto a model to transparently encrypt on write and decrypt on read.

      Call once per model after it is defined: applyEncryptionHooks(User);

      Parameters

      • ModelClass: any

      Returns void