你好,我使用rest api 保存对象时,如何保存Pointer 和 Relation字段,是类似这样吗?
{
"equipmentName": "test",
"solveKey":
{
"__type": "Pointer",
"className": "SolveKey",
"objectId": "5799b1567db2a2005a39b532"
}
} 我在api 测试工具使用过,返回信息如下:
{
"code": 301,
"error": "Fail to insert new document. Write failed with error code 16755 and error message 'Can't extract geo keys: { _id: ObjectId('579ab0d50a2b580058ef3848'), equipmentName: \"test\", solveKey: { $ref: \"SolveKey\", $id: ObjectId('5799b1567db2a2005a39b532') }, ACL: { : { write: true, read: true } }, createdAt: new Date(1469755605114), updatedAt: new Date(1469755605114), _r: [ \"\" ], _w: [ \"*\" ] } unknown GeoJSON type: { $ref: \"SolveKey\", $id: ObjectId('5799b1567db2a2005a39b532') }'"
}
不太理解