0.1.4 • Published 3 months ago

gatsby-source-medusa v0.1.4

Weekly downloads
-
License
MIT
Repository
github
Last release
3 months ago

Note

This plugin is still under development. Please report any issues or suggestions on the GitHub issues page.

Quickstart

This takes you through the minimal steps to see your Medusa data in your Gatsby site's GraphiQL explorer.

1. Installation

Install the source plugin to your Gatsby project using your favorite package manager.

npm install gatsby-source-medusa
yarn add gatsby-source-medusa

2. Configuration

Add the plugin to your gatsby-config.js:

require("dotenv").config()

module.exports = {
  plugins: [
    {
      resolve: "gatsby-source-medusa",
      options: {
        storeUrl: process.env.MEDUSA_URL,
        authToken: process.env.MEDUSA_AUTH_TOKEN //This is optional
      },
    },
    ...,
  ],
}

The plugin accepts two options storeUrl and authToken. The storeUrl option is required and should point to the server where your Medusa instance is hosted (this could be localhost:9000 in development). The authToken option is optional, and if you add it the plugin will also source orders from your store.

You should now be ready to begin querying your data

You should now be able to view your stores MedusaProducts, MedusaRegions, MedusaCollections, and MedusaOrders (if enabled) in your Gatsby site's GraphiQL explorer.

0.1.4

9 months ago

0.1.3

1 year ago

0.1.2

1 year ago

0.1.1-next.44

2 years ago

0.1.1-nxt.130

2 years ago

0.1.1-next.24

2 years ago

0.1.1-next.41

2 years ago

0.1.1-next.27

2 years ago

0.1.1-next.26

2 years ago

0.1.1-next.99

2 years ago

0.1.1-next.35

2 years ago

0.2.0-next.0

2 years ago

0.1.1-nxt.129

2 years ago

0.1.1-next.108

2 years ago

0.1.1

2 years ago

0.1.1-next.101

2 years ago

0.1.1-next.100

2 years ago

0.1.1-next.14

2 years ago

0.0.50-next.83

2 years ago

0.0.50

2 years ago

0.1.0

2 years ago

0.0.51-next.0

2 years ago

0.0.50-dev.98

2 years ago

0.0.50-dev.107

2 years ago

0.0.50-dev.104

2 years ago

0.0.41

2 years ago

0.0.42

2 years ago

0.0.43

2 years ago

0.0.44

2 years ago

0.0.45

2 years ago

0.0.46

2 years ago

0.0.35

2 years ago

0.0.47

2 years ago

0.0.36

2 years ago

0.0.48

2 years ago

0.0.49

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago