2. Query: Get "Fields"

A simple example of a "Fields" query that retrieves the area in hectares.

"Field" area unit could be one of the following: ACRES or HECTARES or SQUARE_METERS.

query GetFieldInHectares {
  getFarms (farmUuids: ["<placeholder_of_farm_uuid>"]){
    uuid
    userUuid
    name
    fields {
      uuid
      name
      area(unit: HECTARES)
    }
  }
}

A more detailed example, including pagination and filtering capabilities, is described in 43: Query Get "Fields".

Last updated

Powered by GeoPard Agriculture - Automated precisionAg platform