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

Allow Google Doc comments to be pullable in GraphQL #253

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

garrettvercoe
Copy link

Hey there, follow up from my previous comment here.

My main reason for needing to keep this forked as of now is to additionally pull in comments from my Google Docs files, as I use these comments for footnotes/margin notes.

With the code provided, comments can be pulled in a GraphQL query like so:

page: googleDocs(slug: { eq: $path }) {
      comments {
          content
          }
      }

I understand this may not be desired behavior so feel free to not add it to the codebase. However, if you think it's a good idea, maybe this contribution could be helpful. Thanks!

@cedricdelpoux
Copy link
Owner

Hello, thank you for your PR! I did not know about comments. Where can we add it on a Google Doc?

Is there only content under comments query ? If it's the case, it's better to remove the abstraction

page: googleDocs(slug: { eq: $path }) {
      comments 
}

What do you think?

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

Successfully merging this pull request may close these issues.

None yet

2 participants