28. ミューテーション: 複数のノートを保存、バッチ操作
このミューテーションでは、指定された圃場(Field)に複数の注記(Notes)を添付できます。
保存できる注記の最大数は25件です。
入力に uuid 属性を追加して注記を更新します。
ノートはフィールドの一意の識別子を介してリンクできます
fieldUuid、を介して関連する土壌データセット(SoilDataset)にsoilDatasetUuidを介してゾーン地図(ZonesMap)に、vectorAnalysisMapUuid.ノートの座標は以下を使用して設定できます
centroid属性で、これには定義された必要がありますlatitudeとlongitude値。ノートの種類は以下の属性で指定できます
タイプ属性、許容値は次のとおりですPLANNEDまたはREAL.ノートの説明は以下を使用して提供できます
comment属性。説明が複数行にする必要がある場合は、comment属性は改行文字を含む文字列にする必要があります\\nで行を区切ります。例えば:"First line. is here\\nSecond line is here.\\nThird line is here.".
mutation BatchSaveNotes {
saveNotes(input:{
notes: [{
fieldUuid: "d31240db-98e6-4cb0-b0a8-97ffe00f5e0d",
centroid: {latitude: 51.177747, longitude: -113.533613},
type: PLANNED,
comment: "まとめて保存: 1",
vectorAnalysisMapUuid: "983095c1-8d31-4cc0-9143-502c35df358d"
}, {
uuid: "531d4cc4-b464-435c-8bb5-464cc13fcafa",
fieldUuid: "d31240db-98e6-4cb0-b0a8-97ffe00f5e0d",
centroid: {latitude: 51.177747, longitude: -113.533613},
type: REAL,
comment: "まとめて更新: 1",
vectorAnalysisMapUuid: "983095c1-8d31-4cc0-9143-502c35df358d"
}, {
fieldUuid: "d31240db-98e6-4cb0-b0a8-97ffe00f5e0d",
centroid: {latitude: 51.177747, longitude: -113.533613},
type: REAL,
comment: "まとめて保存: 2",
vectorAnalysisMapUuid: "983095c1-8d31-4cc0-9143-502c35df358d"
}, {
fieldUuid: "d31240db-98e6-4cb0-b0a8-97ffe00f5e0d",
centroid: {latitude: 51.177747, longitude: -113.533613},
type: REAL,
comment: "まとめて保存: 2",
soilDatasetUuid: "983095c1-8d31-4cc0-9143-502c35df358d"
}
]
} ) {
uuid
fieldUuid
作成日
updatedDate
}
}最終更新
役に立ちましたか?