How to use the algoliasearch-helper.AlgoliaSearchHelper.getConfigurationFromQueryString function in algoliasearch-helper

To help you get started, we’ve selected a few algoliasearch-helper examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github algolia / angular-instantsearch / src / parse-server-request.ts View on Github external
export function parseServerRequest(req: { url: string } | void) {
  if (req && req.url && req.url.includes('?')) {
    const query = req.url.split('?')[1];
    return AlgoliaSearchHelper.getConfigurationFromQueryString(query);
  }

  return {};
}