【发布时间】:2020-05-18 23:13:21
【问题描述】:
我目前在我的应用中使用GQL Modules。
在下面的数据结构中,content 将具有object 或array
var A = {
content: {
text: "Hello"
}
}
var B = {
content: {
banner: [{
text: "Hello"
}]
}
}
如何让content 接受动态架构?
下面是我累了,但没有工作。请帮忙
type body {
content: TextContent | [Banner]
}
type Banner {
text: TextContent
}
type TextContent {
text: String
}
【问题讨论】:
标签: graphql apollo apollo-client gql gqlquery