Skip to content
Load data from Notion's database [WIP]
JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github/workflows Update npmpublish.yml Sep 22, 2019
src
.gitignore
LICENSE
README.md update readme & update version Sep 19, 2019
gatsby-browser.js
gatsby-node.js
gatsby-ssr.js
index.js
package.json fix:table view display bug on safari & edge Dec 2, 2019
yarn.lock

README.md

gatsby-source-notion-database

Load data from Notion's database

Install

yarn add gatsby-source-notion-database

Config

// gatsby-config.js

module.exports = {
    plugins: [
        {
            resolve: `gatsby-source-notion-database`,
            options: {
                sourceConfig : [
                    {
                       name: "books",
                       table: "https://www.notion.so/gine/e355d54c576c41ea826c4704fde3a7c0?v=bba129b8f34e4c62a634330ed6d4373e",
                       cacheType: "static"
                   },
                   {
                      "name": "posts",
                      "table": "https://www.notion.so/gine/99623ef9630940cdb8524ba355831677?v=8366741ca7dd4b339c19484712e13563",
                      "cacheType": "static"
                   }
                ]
            }
        }
    ],
}

Query

query MyQuery {
  allPosts {
    nodes {
      name
      tags
      status
      keywords
      public_date
      books {
        name
        cover_image
        comment
      }
    }
  }
}

You can’t perform that action at this time.