标签: graphql
如果我有这样的架构:
type Cart { items: [CartItem!]! } type CartItem { id: ID! }
给Cart类型一个numberOfItems: Int!字段是不正确的做法吗?
Cart
numberOfItems: Int!