Socket
Book a DemoInstallSign in
Socket

apollo-algolia-transform

Package Overview
Dependencies
Maintainers
2
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

apollo-algolia-transform

Shared Algolia settings and GA metric fetching

latest
npmnpm
Version
1.0.38
Version published
Weekly downloads
17
-84.4%
Maintainers
2
Weekly downloads
 
Created
Source

Gatbsy pages parser for Algolia

This script relies on gatsby-plugin-algolia, it provides the transformer to chunk pages into smaller records. This works for our docs, blog and odyssey content for now.

example usage in gatsby-config:

    {
      resolve: 'gatsby-plugin-algolia',
      options: {
        appId: process.env.GATSBY_ALGOLIA_APP_ID,
        apiKey: process.env.ALGOLIA_ADMIN_KEY,
        queries: [
          {
            query: algoliaParse.queries.docs,
            transformer: ({ data }) => {
              return algoliaParse.parse({
                data,
                baseUrl: 'https://www.apollographql.com/docs/federation'
              });
            },
            indexName: process.env.ALGOLIA_INDEX_NAME,
            settings: algoliaParse.algoliaSettings.default
          }
        ]
      }
    }

FAQs

Package last updated on 30 Nov 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts