Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation updates #22

Open
drewatk opened this issue Nov 9, 2018 · 9 comments
Open

Documentation updates #22

drewatk opened this issue Nov 9, 2018 · 9 comments

Comments

@drewatk
Copy link
Collaborator

drewatk commented Nov 9, 2018

We need to update documentation to make this a bit better on beginners

@drewatk
Copy link
Collaborator Author

drewatk commented Apr 9, 2019

Also add new "type guessing" logic from #19

@krerkkiat
Copy link

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

@Waschnick
Copy link

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?

krerkkiat added a commit to krerkkiat/gatsby-source-google-sheets that referenced this issue Sep 26, 2019
The content are from the following discussion: brandonmp#21,
brandonmp#13, brandonmp#20, and
brandonmp#17.

try to address brandonmp#22
@krerkkiat
Copy link

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

@stewest
Copy link

stewest commented Jan 9, 2020

@doublejosh
Copy link

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

@stewest
Copy link

stewest commented Oct 19, 2022

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.

@doublejosh
Copy link

doublejosh commented Nov 15, 2022

@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",

@stewest
Copy link

stewest commented Nov 16, 2022

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Version 1.2
  
To do
Development

No branches or pull requests

5 participants