Giter VIP home page Giter VIP logo

Comments (9)

krerkkiat avatar krerkkiat commented on July 1, 2024 1

@drewatk Does anyone taking this issue yet? May I be any help?

from gatsby-source-google-sheets.

Waschnick avatar Waschnick commented on July 1, 2024 1

I still haven't figured out how to query data with GraphQL. I did setup everything with credentials and it builds, but how do I write the API queries?

from gatsby-source-google-sheets.

krerkkiat avatar krerkkiat commented on July 1, 2024 1

@Waschnick If you still looking into how to query, please have a look at changes in #29 (or a rendered README.md here).

from gatsby-source-google-sheets.

stewest avatar stewest commented on July 1, 2024 1

Hi @doublejosh yes, indeed, odd name. I think it needs to make it unique, as one could have multiple sources. Getting the name from GraphQL is the way. Good luck with your project!

from gatsby-source-google-sheets.

drewatk avatar drewatk commented on July 1, 2024

Also add new "type guessing" logic from #19

from gatsby-source-google-sheets.

stewest avatar stewest commented on July 1, 2024

YES! That helps a lot, thanks! https://github.com/krerkkiat/gatsby-source-google-sheets/tree/revise-documentation

from gatsby-source-google-sheets.

doublejosh avatar doublejosh commented on July 1, 2024

Can someone please document what the graphQL query is supposed to look like to use this plugin?

from gatsby-source-google-sheets.

stewest avatar stewest commented on July 1, 2024

Hi @doublejosh

Did you see https://github.com/brandonmp/gatsby-source-google-sheets/pull/29/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5R50

It will depend on the shape of your data sheet, i.e. the column names.

from gatsby-source-google-sheets.

doublejosh avatar doublejosh commented on July 1, 2024

@stewest The confusing part is the table/type name, not the columns. In the example it's allGoogleSheetPublicationsRow

I was only able to discover mine by hitting the local GraphQL endpoint http://localhost:8000/___graphql

It seems to generate a name from the title of the sheet and the tab name, and makes choices about capitalization.

In my case... allGoogleSpreadsheetWwWebsiteContentVideos

spreadsheetName: "WWWebsiteContent",
typePrefix: "GoogleSpreadsheet",

from gatsby-source-google-sheets.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.