The package helps you to fetch data from strapi plugin menus into GatsbyJs as graphql nodes.
yarn add gatsby-source-menus-strapi-plugin
gatsby-config.js
module.exports = {
plugins: [
{
resolve: `gatsby-source-menus-strapi-plugin`,
options: {
apiURL: `http://localhost:1337`,
menusEndpoint: `menus`,
nested: true, // default to false
menuID: '', // leave it empty string for all menu population ,otherwise add your menu id number
},
},
],
}