brandonmp / gatsby-source-google-sheets

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

Update google-spreadsheet package. #27

Open laradevitt opened 5 years ago

laradevitt commented 5 years ago

Version 2.0.3 is very old by now, and this should also resolve warnings in #25. Testing is obviously needed.

Thanks for this plugin!

stewest commented 3 years ago

This actually needs to go up to version 4 ! https://cloud.google.com/blog/products/g-suite/migrate-your-apps-use-latest-sheets-api see https://www.npmjs.com/package/google-spreadsheet

laradevitt commented 3 years ago

@stewest Yes, but I think that might require more substantial changes to the plugin, and I'm not sure it is being maintained anymore. There is another source plugin that is compatible with v4: https://github.com/sondrele/gatsby-source-google-spreadsheet

stewest commented 3 years ago

Hi @laradevitt 100%

I can only recommend https://www.gatsbyjs.com/plugins/gatsby-source-google-spreadsheet - works for v4 API and I've converted from this package: gatsby-source-google-sheets. One only need change your GraphQL a little. E.g. camelCase column titles etc.