brandonmp / gatsby-source-google-sheets

A GatsbyJS plugin that pulls nodes from rows in a Google Sheet.
90 stars 32 forks source link

Pull from two worksheets #9

Open Zuul86 opened 6 years ago

Zuul86 commented 6 years ago

I'd like to be able to pull from two worksheets. How can I accomplish this?

MartinNuc commented 6 years ago

just add this plugin multiple times

mtfum commented 6 years ago

How can I do that? it doesn't work! Please help me somebody! Thanks


    {
      resolve: 'gatsby-source-google-sheets',
      options: {
        spreadsheetId: 'id',
        worksheetTitle: 'note',
        credentials: require('./note-rss-client_secret.json')
      }
    },
    {
      resolve: 'gatsby-source-google-sheets',
      options: {
        spreadsheetId: 'id',
        worksheetTitle: 'qiita',
        credentials: require('./qiita-rss-client-secret.json')
      }
    }
SKempin commented 4 years ago

@mtfum @MartinNuc I am trying to pull data from two worksheets in the same spreadsheet file, is this possible?

krerkkiat commented 4 years ago

@SKempin It is possible. Adding multiple object of gatsby-source-google-sheets to the gatsby-config.js (like the comment above you). I am not sure why that does not work for that person, but one of my project use the exact same structure.

SKempin commented 4 years ago

Tested and I can confirm this works