我创建了以下架构,直到昨天它都会Input
使用@connection
引用生成ID
。我创建了一个新的 API,它现在正在创建一个Input
实际嵌套的 API,type
作为Input
某些类型的一部分。例如:
type Metadata
@model(subscriptions: null)
@versioned
@auth(
rules: [
]
) {
id: ID!
merchant: Merchant! @connection
}
type Merchant
@model(subscriptions: null)
@versioned
@auth(
rules: []
) {
id: ID!
metadata: Metadata! @connection
}
将创建输入类型:
export type CreateMerchantInput = {
id?: string | null,
merchantMetadataId: string,
};
export type CreateMetadataInput = {
id?: string | null,
merchant: MerchantInput, <-- Contains this!!
metadataMerchantId: string,
};
Appsync 模式也显示了这一点,所以我的机器上已经编译了主要的 GraphQL 模式并推送了它。真的很吓人,不同的机器可以编译不同的!
有没有人知道我在架构或 Amplify CLI 配置中所做的更改或遗漏或指定的内容?