86. クエリ:"Farms"を取得

以下は、ユーザーがアクセスできるすべての「農場(Farms)」を取得するために使用される基本的なGraphQLクエリの概要です:

query FetchAllFarms {
  getFarms {
    uuid
    userUuid
    名前
    farmOwnership
    externalKey
    ownerEmail
    作成日
    updatedDate
  }
}

他のパラメータに加えて、次の farmUuids および externalKeys フィルターを使用してレスポンスをカスタマイズできます。これらのフィルターは個別に、または組み合わせて適用でき、より目的に即したデータ取得が可能です。

query FetchAllFarmsWithFilters {
  getFarms(
    farmUuids:["<placeholder_of_farm_uuid>"], 
    externalKeys:["<placeholder_of_external_key>"]
  ) {
    uuid
    userUuid
    名前
    farmOwnership
    externalKey
    ownerEmail
    作成日
    updatedDate
  }
}

最終更新

役に立ちましたか?