【发布时间】:2022-06-22 03:11:07
【问题描述】:
type Book @key(fields: "id language country name desc") @extends {
id: ID! @external
language: String! @external
country: String @external
name: String! @external
description: String! @external
information: MetaInformation @requires(fields: "id language country name desc ")
}
这里我扩展了带有信息属性的书,其他的来自书图,我想知道如何为国家/地区设置默认值?它在 Book graph 中可以为 null,但它需要获取信息属性,或者我应该在 datafetcher 中处理它。
【问题讨论】: