我在我的graphcool中创建了这个关系
type User @model {
id: ID! @isUnique
location: Location! @relation(name: "UserLocation")
}
type Location @model {
id: ID! @isUnique
lat: Int
lng: Int
User: User! @relation(name: "UserLocation”)
}
之前位置是一个字符串,但现在我希望它是一个对象,所以我创建了这个关系,这样我就可以使用嵌套突变。当我部署我得到这个错误:
There are issues with the new service definition:
Global
✖ None.get
我用谷歌搜索,查看了文档,但我无法理解我做错了什么,这是一个简单的关系。