Cannot query the Google Doc's set description values with graphql
See original GitHub issueI 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:
- Created 3 years ago
- Comments:9 (9 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
It’s interesting! I don’t know how but maybe we could add something generic to this repo to help people create documents
You expect
imgalt
but you specifiedthumbalt
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.