Uploaded image for project: 'Nuxeo Documentation'
  1. Nuxeo Documentation
  2. NXDOC-1637

Add example for querying with predicates

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Client SDKs

      Description

      The predicates are not part of the queryParams, but of the query object itself:

      const searchTrash = (searchText) => {
        return new Promise(((resolve, reject) => {
        nx.repository()
          .query({
            pageProvider: "default_trash_search",
            ecm_fulltext: searchText
          })
          .then((res) => resolve(res))
          .catch((err) => reject(new Error(err)))
        }))
      };
      

        Attachments

          Activity

            People

            • Assignee:
              ffischer Frantz Fischer
              Reporter:
              ffischer Frantz Fischer
              Participants:
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: