Uploaded image for project: 'Nuxeo JS Client'
  1. Nuxeo JS Client
  2. NXJS-84

Allow to add a list of enrichers / fetch properties for a given entity name

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.0.0
    • Component/s: Browser, Node.js

      Description

      Make it possible to add an array of enrichers / fetch properties, without overriding the existing ones.
      Before:

        nuxeo.enricher('document', 'breadcrumb')
          .enricher('document', 'thumbnail');
      

      After:

        nuxeo.enrichers({ document: ['breadcrumb', 'thumbnail'] }, false);
      

      Using the existing enrichers() method (in its current state) overrides completely the existing enrichers.
      Added a boolean parameter to specify whether we want to override, or merge the enrichers. Default to override.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: