Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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
      }
    }
  }
}

About

Load data from Notion's database [WIP]

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published