code: function getAutoCompleteServiceQuery(listName) {
      return (query) => {
          loadListByName(listName, query.term).then((results) => {
              query.callback(results);
          });
      };
  }
docs: Get a function to trigger in autocomplete case.
  The function will trigger a promise.
  @param {string} listName - Name of the list.