【发布时间】:2017-07-28 23:39:06
【问题描述】:
如果可能的话,我正在尝试弄清楚如何使用 graphql 突变来改变嵌套对象。例如,我有以下架构:
type Event {
id: String
name: String
description: String
place: Place
}
type Place {
id: String
name: String
location: Location
}
type Location {
city: String
country: String
zip: String
}
type Query {
events: [Event]
}
type Mutation {
updateEvent(id: String, name: String, description: String): Event
}
schema {
query: Query
mutation: Mutation
}
如何在我的 updateEvent 突变中添加地点信息?
【问题讨论】:
标签: graphql graphql-js