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

How do I query from the plugin? #21

Closed
Tresky opened this issue Oct 31, 2018 · 1 comment
Closed

How do I query from the plugin? #21

Tresky opened this issue Oct 31, 2018 · 1 comment

Comments

@Tresky
Copy link

Tresky commented Oct 31, 2018

I am fairly new to Gatsby and GraphQL as a whole. I got all of the setup work done for this plugin to get permissions working. I'm unsure how to actually write the GraphQL query though. Anyone have any insight?

@drewatk
Copy link
Collaborator

drewatk commented Nov 9, 2018

Until we can get some docs up the best way is to use GraphiQL to make test queries, which is built in to gatsby in development mode.

Here's a sample query of getting all rows in a spreadsheet. The title and description are column headers in my spreadsheet.

{
  allGoogleSheetSheet1Row {
    edges {
      node {
        title
        description
      }
    }
  }
}

@drewatk drewatk closed this as completed Nov 9, 2018
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants