gatsby-source-qiita
Gatsby source plugin for building websites using Qiita as a data source.
Last updated 2 years ago by takumon .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install gatsby-source-qiita 
SYNC missed versions from official npm registry.

gatsby-source-qiita

npm version

Source plugin for pulling data into Gatsby from Qiita using the Qiita API v2.

Install

npm install --save gatsby-source-qiita

How to use

// In your gatsby-config.js
module.exports = {
  plugins: [
    {
      resolve: `gatsby-source-qiita`,
      options: {
        accessToken: `YOUR_PERSONAL_ACCESS_TOKEN`,
        userName: `YOUR_UAWE_NAME`,
        // (optional)
        // Default is false.
        fetchPrivate: false,
        // (optional)
        // String Array.
        // Default is [].
        excludedPostIds: ['da8347f81a9f021b637f']
      }
    }
  ]
}

How to query

{
  allQiitaPost {
    edges {
      node {
        id
        title
        headings {
          value
          id
          depth
          parents {
            value
            id
            depth
          }
        }
        rendered_body
        body
        comments_count
        created_at
        likes_count
        reactions_count
        tags {
          name
        }
        updated_at
        url
        user {
          id
        }
      }
    }
  }
}

Sample

Current Tags

  • 1.2.4                                ...           latest (2 years ago)

5 Versions

  • 1.2.4                                ...           2 years ago
  • 1.1.1                                ...           2 years ago
  • 1.0.0                                ...           2 years ago
  • 0.3.0                                ...           2 years ago
  • 0.1.0                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (6)
Dev Dependencies (4)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |