GraphQL连接上的`fields'参数有什么作用?

时间:2020-10-07 15:23:43

标签: graphql aws-amplify

我无法在amplify / graphQL中找到任何有关此目的的文档,

这是为什么:

@connection(keyName: "bySeason", fields: ["id"])`

有什么不同
@connection(keyName: "bySeason")

示例模型

type League @model
{
  id: ID!
  name: String!
  seasons: [Season] @connection(keyName: "bySeason", fields: ["id"])
}

0 个答案:

没有答案