Gatsby源API服务器正在转换属性名称,不允许GraphQL查询

Gatsby源API服务器正在转换属性名称,不允许GraphQL查询,graphql,gatsby,Graphql,Gatsby,盖茨比源API服务器工作得很好。在我的盖茨比配置中: { resolve: 'gatsby-source-apiserver', options: { typePrefix: 'community_education__', url: `https://spreadsheets.google.com/feeds/list/1DLAVN3q758sPohCFeZlVSVRZKXzEser1SIsQnH2mvrw

盖茨比源API服务器工作得很好。在我的盖茨比配置中:

    {
        resolve: 'gatsby-source-apiserver',
        options: {
            typePrefix: 'community_education__',
            url: `https://spreadsheets.google.com/feeds/list/1DLAVN3q758sPohCFeZlVSVRZKXzEser1SIsQnH2mvrw/ogwtdyp/public/basic?hl=en_US&alt=json`,
            method: 'get',
            name: `classes`,
            entityLevel: `feed.entry`,
            schemaType: classType,
            localSave: true,
            path: `${__dirname}/api/`,
            verboseOutput: true,
        }
    }
这是正确的拉下来的数据,我想要的。问题是我使用的API(google)带来了如下属性:

{
    "title": {
      "type": "text",
      "$t": "Computer Coding for Kids"
    },
    "content": {
      "type": "text",
      "$t": "district: Hopkins, days: Mon - Thurs, startdate: 6/11/2018, enddate: 6/14/2018, time: 9am - Noon, grades: 3rd, 4th, 5th, 6th Grades, description: Learn how to code through playing games and having fun! We'll learn the fundamentals of loops, if statements, and variables as we learn the blockly and python computer languages!  Please come with internet navigation skills (basic typing and mouse control) and a passion to work hard and have fun!, link: https://hopkins.ce.eleyo.com/course/6064/youth-summer-2018/computer-coding-for-kids"
    }
  }
当我去做一个GraphQL查询时,可用的属性是
type
alternative\uuu t
,这实际上是可以的,除了
alternative\uu t
总是返回
null

此查询:

{
  allCommunityEducationClasses {
    totalCount
    edges {
      node {
        title {
          type
          alternative__t
        }
        content {
          type
          alternative__t
        }
      }
    }
  }
}
返回此结果:

    {
      "node": {
        "title": {
          "type": "text",
          "alternative__t": null
        },
        "content": {
          "type": "text",
          "alternative__t": null
        }
      }
    },
    {
      "node": {
        "title": {
          "type": "text",
          "alternative__t": null
        },
        "content": {
          "type": "text",
          "alternative__t": null
        }
      }
    },

我知道问题出在
$t
,如果这是我自己的API,我可以更改response name属性,我会的,但这是google API。我能以某种方式重命名该属性吗?有没有办法使用转义字符来查询
$t

库似乎正在检查特殊字符,但没有检查
$
。我可以通过将
.replace
更改为
.replace(/-| | | | | | |:|$|.\s/g,| | |)
normalize.js
中,这解决了我的问题

我也提出了拉车的要求