AWS放大迁移graphqltransformer到v2
我最近在放大后端中将@index注释添加到我的graphQl架构中,现在正在收到以下错误:
schemavalidationerror:您的GraphQl架构使用了GraphQl Qulageql transformer
的新版本中的“ @index”指令。
我遵循了错误中引用的迁移指南: https://docs.amplify 。
I recently added the @index annotation to my GraphQL schema in my Amplify backend and am now getting the following error:
SchemaValidationError: Your GraphQL Schema is using "@index" directive from the newer version of the GraphQL Transformer
I've followed the migration guide referenced in the error: https://docs.amplify.aws/cli/migration/transformer-migration/ but it doesn't actually indicate how to perform the migration itself
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
GraphQL Transformer版本以
amplify/cli.json
进行管理,您只需要编辑文件并设置以下两个属性:
从那里您可以进行
amplify push
或a放大CodeGen模型
,并假设指南中引用的所有更改( https://docs.amplify.aws/cli/migration/transformer-migration/ )已被迎合所有人。The GraphQL Transformer version is managed in
amplify/cli.json
You simply need to edit the file and set the following two properties:
From there you can do an
amplify push
or aamplify codegen models
and assuming all changes referenced in the guide (https://docs.amplify.aws/cli/migration/transformer-migration/) have been catered for all will work.