如何从 GraphQL Transformer v2 迁移到 v1?

发布于 2025-01-17 13:12:06 字数 69 浏览 1 评论 0原文

使用 Amplify add api 时,它会自动安装新的 GraphQL Transformer v2,但我想使用 V1。

When using Amplify add api it automatically installs the new GraphQL Transformer v2, but I want to use V1.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

你好,陌生人 2025-01-24 13:12:06

这由A 特征标志控制。您可以找到docs 在这里

您需要编辑(或创建)您的cli.json文件并添加以下内容。

{
  "features": {
    "graphQLTransformer": {
      "transformerVersion": 1
    }
}

This is controlled by a feature flag. You can find the docs here

You'll want to edit (or create) your cli.json file and add the following.

{
  "features": {
    "graphQLTransformer": {
      "transformerVersion": 1
    }
}
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文