question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot query the Google Doc's set description values with graphql

See original GitHub issue

I have installed the latest gatsby-source-google-docs@2.0.0-beta.19
On gatsby develop all my queries now fail pertaining to all the Doc’s description values.

I believe now we are to make sure our description written in YAML format and not JSON, is this the case?

If so do we need to use --- at the head of the YAML format?

I have found that in graphql I cannot query for any specific values within the YAML structure. I can only return a sting of the description:

Query:

{
  allMarkdownRemark {
    edges {
      node {
        frontmatter {
          description
        }
      }
    }
  }
}

There are no sub-fields within the description field.

Example of one of the returned nodes showing the description field value:

{
          "node": {
            "frontmatter": {
              "description": "page: 'exhibition'\n                           title: February Feature\n                           showstart: 2020-02-08\n                           showend: 2020-02-15\n                           showlocation: Toronto\n                           showcode: 2020020820200215TOR\n                           showstatus: upcoming\n                           thumbalt: Multimedia sculpture Rabbit by Patrick Amiot"
            }
          }
        },

Thank you

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:9 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
cedricdelpouxcommented, Sep 17, 2020

It’s interesting! I don’t know how but maybe we could add something generic to this repo to help people create documents

1reaction
cedricdelpouxcommented, Sep 16, 2020

You expect imgalt but you specified thumbalt in your YAML. Is it a typo?

I can’t reproduce your issue. I tried to paste your YAML description into one of my documents. Screenshot 2020-09-16 at 08 43 53

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why I got error: Cannot query field xx on type "Query"?
I was getting the error: Cannot query field \"BasicAnswer\" on type ... projectname/src/main/resources/graphql/*.graphqls", documents: '.
Read more >
Authentication and authorization - Apollo GraphQL Docs
Once we have information about the user making a request, the most basic thing we can do is deny them the ability to...
Read more >
GraphQL policy | Apigee X - Google Cloud
Specifies the type of request that can be parsed: query , mutation , or query_mutation (either). <ResourceURL>, Optional, DESCRIPTION. The location of the ......
Read more >
Execution - GraphQL
After being validated, a GraphQL query is executed by a GraphQL server which returns a result that mirrors the shape of the requested...
Read more >
GraphQL API style guide - GitLab Documentation
It results in N+1 query problem. EnvironmentsResolver can't use GraphQL batch loader in favor of GraphQL pagination. query { projects { nodes {...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found