Skip to content

Gatsby source plugin to query navigations from strapi using the strapi-plugin-navigation API.

License

Notifications You must be signed in to change notification settings

edardev/gatsby-source-strapi-plugin-navigation

Repository files navigation

gatsby-source-strapi-plugin-navigation

Gatsby source plugin for pulling navigation/menu into Gatsby as graphQL nodes from a strapi instace that uses the strapi-plugin-navigation.

Install

yarn add gatsby-source-strapi-plugin-navigation

How to use

In your gatsby-config.js

module.exports = {
  plugins: [
    {
      resolve: `gatsby-source-strapi-plugin-navigation`,
      options: {
        apiURL: `http://localhost:1337`,
        queryLimit: 100,
        navigationEndpoint: [`navigation`],
      },
    },
  ],
};

Strapi plugin navigation example

strapi-plugin-navigation example

GraphiQL example in gatsby

GraphiQL example in gatsby

About

Gatsby source plugin to query navigations from strapi using the strapi-plugin-navigation API.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published