【问题标题】:How to amplify codegen models?如何放大代码生成模型?
【发布时间】:2021-02-25 06:54:26
【问题描述】:

型号:

type Order @model @auth(rules: [{allow: public}]) {
  id: ID!
  firstName: String
  lastName: String
  orderDate: AWSDate
  qrcode: String
  address: String
  allergies: String
  deliveryOption: DeliveryOptions
  deliveryType: DeliveryType
  paymentMethod: String
  orderItems: [OrderItem] @connection(keyName: "byOrder", fields: ["id"])
  addresss: Address @connection
  vehicleDescription: Car @connection
  friendsAndFamily: FriendsAndFamily @connection
}

我在终端中为 android studio 执行“放大代码生成模型”

enter image description here

但它有错误 enter image description here

我可以删除字段中的第一个构造函数并继续工作,但是当我重新执行“放大代码生成模型”时,它会出错。

请帮帮我! 谢谢!

【问题讨论】:

    标签: android aws-amplify graphql-java amplify


    【解决方案1】:

    最新版本的 Amplify CLI 生成的模型仅与 Amplify Android 版本 1.16.11 或更高版本兼容。最新版本是 1.16.15。请更新到最新的库版本。

    【讨论】:

      猜你喜欢
      • 2022-08-17
      • 2021-02-27
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-09-02
      • 2016-12-16
      • 1970-01-01
      相关资源
      最近更新 更多