gatsby-source-medium-posts

Gatsby plugin to fetch medium posts

Downloads
13
Stars
1
Committers
3

Gatsby Source Medium Posts

Setup

npm install gatsby-source-medium-posts

// gatsby-node.js
module.exports = {
  plugins: [
    {
      resolve: `gatsby-source-medium-posts`,
      options: {
        username: "glweems",
      },
    },
  ],
}

Content field returns html of your blog post.

// Example Query
{
  allMediumPost {
    edges {
      node {
        id
        title
        pubDate
        link
        guid
        author
        thumbnail
        content
        categories
        description
      }
    }
  }
}