field
Retrieve a field.
Arguments
ID!)
The Sentera ID of the Field being retrieved
Return fields
Float!)
Support added for retrieving area in metric units. Please use area instead.
The acres of the boundary of the field.
UpsertActionType!)
Determines if it was a create or update.
Boolean!)
Indicator of whether or not this field is currently active.
String)
Field address.
AlertsQueryResult!)
A list of alerts associated with this field.
| Argument | Type | Description |
|---|---|---|
apply_user_preferences_filter |
Boolean
|
Filter the alerts according to a user's notification delivery preferences. |
pagination |
Pagination
|
Paginate the results. |
status |
AlertStatusType
|
Filter the alerts by status. |
Area!)
The area of the boundary of the field in the specified unit system.
| Argument | Type | Description |
|---|---|---|
unit |
AreaUnitType
|
The unit in which a client would like the area. |
unit_system |
UnitSystem
|
The unit system in which a client would like the area. Defaults to IMPERIAL if not provided. |
[Float!]!)
A simple (w, s, e, n) box that represents the extreme coordinates of the field's boundary.
GeoJSON!)
A GeoJson FeatureCollection that includes a MultiPolygon representing the field boundary.
String)
Field city.
String!)
The current content hash for this item.
String)
Field country code (ISO 3166-1).
String)
Field county.
ISO8601DateTime!)
The timestamp of when the item was created in the system.
User!)
The user who created this item.
[Int!]!)
The years that crop seasons were planted on this field.
[CropSeason!]!)
Float)
The distance in miles from an origin geo-position of this field. Only available when using the haversine radius query input; null otherwise.
ExternalCredential)
Please use the external_id and external_partner fields.
The external connection that this field is linked to.
String)
The id of the field in the external partner's system.
ExternalPartner)
The external partner the field was imported from.
String)
Field farm name
FeatureSetsQueryResult!)
A list of feature sets for this field.
| Argument | Type | Description |
|---|---|---|
order_by |
FeatureSetSortingAttributes
|
Order the results by a specific attribute. |
order_by_direction |
SortDirection
|
Direction (ascending or descending) of the ordered results. |
pagination |
Pagination
|
Paginate the results. |
type |
FeatureSetType
|
Filter the results by feature set type. |
[GeoPosition]!)
Please use the boundary GeoJSON field.
A closed collection of geo-positions representing the field boundary.
FilesQueryResult!)
A list of files associated with this field.
| Argument | Type | Description |
|---|---|---|
date_range |
DateRange
|
Filter the results by a date range. |
order_by |
FileSortingAttributes
|
Order the results by a specific attribute. |
order_by_direction |
SortDirection
|
Direction (ascending or descending) of the ordered results. |
pagination |
Pagination
|
Paginate the results. |
String)
Field grower name.
Float!)
The latitude value for the center of the field.
Float!)
The longitude value for the center of the field.
String!)
Field name.
Organization!)
The organization associated with this field.
FeatureSetOwnerType!)
Type of the feature set owner
ID!)
ID of the feature set owner
ShapesQueryResult!)
A list of shapes associated with this field.
| Argument | Type | Description |
|---|---|---|
date_range |
DateRange
|
Filter the results by date range |
order_by |
ShapeSortingAttributes
|
Order the results by a specific attribute. |
order_by_direction |
SortDirection
|
Direction (ascending or descending) of the ordered results. |
pagination |
Pagination
|
Paginate the results. |
Indicates if this field has been shared from another account.
String)
Field state/province/region code (ISO 3166-2).
SurveysQueryResult!)
A list of surveys associated with this field..
| Argument | Type | Description |
|---|---|---|
date_range |
DateRange
|
Filter the results by date range. |
order_by |
SurveySortingAttributes
|
Order the results by a specific attribute. |
order_by_direction |
SortDirection
|
Direction (ascending or descending) of the ordered results. |
organization_sentera_id |
ID
|
List surveys for this organization. |
pagination |
Pagination
|
Paginate the results. |
TasksQueryResult!)
A list of tasks associated with this field.
| Argument | Type | Description |
|---|---|---|
assigned_to |
ID
|
Filter tasks by the "assigned to" user. Specify null to retrieve unassigned tasks. |
created_by |
ID
|
Filter tasks by the user that created them. Can be used to list tasks you created. |
pagination |
Pagination!
|
Paginate the results. |
status |
TaskStatus
|
Filter tasks by status. |
statuses |
[TaskStatus!]
|
Filter tasks by one or more statuses. |
task_type |
TaskType
|
Filter tasks by their type. |
String!)
The time zone of the field. Zone names are from the "TZ database name" column from https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List.
ISO8601DateTime!)
The timestamp of when the item was last updated in the system.
User)
The user who last updated this item.
[Int!]!)
The years that this field was planted.
String)
Field zip code.
Examples
Field
Retrieve a field
Try this example in GraphiQLquery FieldBySenteraID{
field(sentera_id: "zx0tsts_AS_SHORT1_CV_test_1ba88e5_170907_220547") {
sentera_id
name
latitude
longitude
}
}
{
"data": {
"field": {
"sentera_id": "zx0tsts_AS_SHORT1_CV_test_1ba88e5_170907_220547",
"name": "Field 5524",
"latitude": 45.0,
"longitude": -93.4
}
}
}
Field with Surveys and Files
Retrieve a field and its surveys and files
Try this example in GraphiQLquery FieldBySenteraIDWithSurveysAndFiles{
field(sentera_id: "zx0tsts_AS_SHORT1_CV_test_1ba88e5_170907_220547") {
sentera_id
name
latitude
longitude
files(pagination: {page_size: 10, page: 1}, order_by: FILENAME, order_by_direction: ASCENDING) {
total_count
page
page_size
results {
sentera_id
}
}
surveys(pagination: {page_size: 10, page: 1}, order_by: START_TIME, order_by_direction: DESCENDING) {
total_count
page
page_size
results {
sentera_id
start_time
end_time
}
}
}
}
{
"data": {
"field": {
"sentera_id": "zx0tsts_AS_SHORT1_CV_test_1ba88e5_170907_220547",
"name": "Field 5524",
"latitude": 45.0,
"longitude": -93.4,
"files": {
"total_count": 467,
"page": 1,
"page_size": 10,
"results": [
{
"sentera_id": "itqkn28_FI_SHORT1_CV_test_dc0d87d_170907_235328"
}
]
},
"surveys": {
"total_count": 4,
"page": 1,
"page_size": 10,
"results": [
{
"sentera_id": "itqkn28_CO_SHORT1_CV_test_dc0d87d_170907_235328",
"start_time": "2017-09-03T16:25:32Z",
"end_time": "2017-09-03T16:45:32Z"
}
]
}
}
}
}
Field with Surveys Constrained by Date Range
Retrieve a field and its surveys, containing the surveys by a date range
Try this example in GraphiQLquery FieldBySenteraIDWithSurveysConstrainedByDateRange{
field(sentera_id: "zx0tsts_AS_SHORT1_CV_test_1ba88e5_170907_220547") {
sentera_id
name
latitude
longitude
surveys(
date_range: {
date_attribute_name: "start_time"
start_timestamp: "2016-08-20T04:53:28Z"
end_timestamp: "2016-08-30T04:53:28Z"}
){
total_count
results {
sentera_id
start_time
end_time
}
}
}
}
{
"data": {
"field": {
"sentera_id": "zx0tsts_AS_SHORT1_CV_test_1ba88e5_170907_220547",
"name": "Field 5524",
"latitude": 45.0,
"longitude": -93.4,
"surveys": {
"total_count": 6,
"results": [
{
"sentera_id": "vbiul43_CO_SHORT1_CV_test_dc0d87d_170824_235328",
"start_time": "2017-08-24T16:25:32Z",
"end_time": "2017-08-24T17:11:24Z"
}
]
}
}
}
}
Field with Alerts
Retrieve a field and its alerts
Try this example in GraphiQLquery FieldBySenteraIDWithAlerts{
field(sentera_id: "zx0tsts_AS_SHORT1_CV_test_1ba88e5_170907_220547") {
sentera_id
name
latitude
longitude
alerts(pagination: {page_size: 10, page: 1}) {
total_count
page
page_size
results {
sentera_id
name
message
status
key
}
}
}
}
{
"data": {
"field": {
"sentera_id": "zx0tsts_AS_SHORT1_CV_test_1ba88e5_170907_220547",
"name": "Field 5524",
"latitude": 45.0,
"longitude": -93.4,
"alerts": {
"total_count": 5,
"page": 1,
"page_size": 10,
"results": [
{
"sentera_id": "itqkn28_AL_SHORT1_CV_test_dc0d87d_170907_235328",
"name": "Southern Corn Rust Alert",
"message": "Current weather conditions indicate that this field is susceptible to southern corn rust.",
"status": "OPEN",
"key": "disease"
}
]
}
}
}
}
Field with Alerts filtered by a user's notification preferences
Retrieve a field and its alerts filtered by persisted notification delivery preferences. In this example the caller has chosen not to see disease alerts.
Try this example in GraphiQLquery FieldBySenteraIDWithAlerts{
field(sentera_id: "zx0tsts_AS_SHORT1_CV_test_1ba88e5_170907_220547") {
sentera_id
name
latitude
longitude
alerts(pagination: {page_size: 10, page: 1}, apply_user_preferences_filter: true) {
total_count
page
page_size
results {
sentera_id
name
message
status
key
}
}
}
}
{
"data": {
"field": {
"sentera_id": "zx0tsts_AS_SHORT1_CV_test_1ba88e5_170907_220547",
"name": "Field 5524",
"latitude": 45.0,
"longitude": -93.4,
"alerts": {
"total_count": 5,
"page": 1,
"page_size": 10,
"results": [
{
"sentera_id": "itqkn28_AL_SHORT1_CV_test_dc0d87d_170907_235328",
"name": "Southern Corn Rust Alert",
"message": "Current weather conditions indicate that this field is susceptible to southern corn rust.",
"status": "OPEN",
"key": "disease"
}
]
}
}
}
}
Field with Shapes
Retrieve a field and its shapes
Try this example in GraphiQLquery FieldBySenteraIDWithAlerts{
field(sentera_id: "zx0tsts_AS_SHORT1_CV_test_1ba88e5_170907_220547") {
sentera_id
name
latitude
longitude
shapes {
results {
name
color
reference_date
geometry
}
}
}
}
{
"data": {
"field": {
"sentera_id": "zx0tsts_AS_SHORT1_CV_test_1ba88e5_170907_220547",
"name": "Field 5524",
"latitude": 45.0,
"longitude": -93.4,
"shapes": {
"total_count": 1,
"page": 1,
"page_size": 10,
"results": [
{
"name": "Test Shape",
"color": "#ff40ff",
"reference_date": "2019-07-14",
"geometry": {
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"geometry": {
"type": "GeometryCollection",
"geometries": [
{
"type": "Polygon",
"coordinates": [
[
[
-93,
45
],
[
-93.1,
45.1
],
[
-93.2,
45.2
],
[
-93,
45
]
]
]
}
]
},
"properties": {}
}
]
}
}
]
}
}
}
}
Field with Crop Seasons and Field Activities
Retrieve a field, its seasons and activities.
Try this example in GraphiQLquery FieldBySenteraIDWithFieldActivities{
field(sentera_id: "zx0tsts_AS_SHORT1_CV_test_1ba88e5_170907_220547") {
sentera_id
name
latitude
longitude
crop_seasons {
sentera_id
name
crop_type
started_at
ended_at
field_activities {
sentera_id
__typename
product_name
... on IrrigateActivity {
application_rate {
value
unit
}
}
application_area {
value
unit
}
applied_at
}
}
}
}
{
"data": {
"field": {
"sentera_id": "zx0tsts_AS_SHORT1_CV_test_1ba88e5_170907_220547",
"name": "Field 5524",
"latitude": 45.0,
"longitude": -93.4,
"crop_seasons": [
{
"sentera_id": "mhf5wfk_CS_SHORT2_CV_test_69b92f355_200203_165314",
"name": "2019",
"crop_type": "CORN",
"started_at": "2019-05-03T16:55:34Z",
"ended_at": null,
"field_activities": [
{
"sentera_id": "aa4txk2_FA_SHORT2_CV_test_69b92f355_200203_165314",
"__typename": "PlantActivity",
"product_name": null,
"application_area": {
"value": 20.0,
"unit": "ACRE"
},
"applied_at": "2019-05-03T16:55:34Z"
},
{
"sentera_id": "az4txr4_FA_SHORT2_CV_test_69b92f355_200204_165314",
"__typename": "IrrigateActivity",
"product_name": null,
"application_rate": {
"value": 50.0,
"unit": "GALLONS_PER_ACRE"
},
"application_area": {
"value": 20.0,
"unit": "ACRE"
},
"applied_at": "2019-05-04T16:55:34Z"
}
]
}
]
}
}
}
Field with Crop Seasons Years
Retrieve a field and its crop season years
Try this example in GraphiQLquery FieldBySenteraIDWithFieldActivities{
field(sentera_id: "zx0tsts_AS_SHORT1_CV_test_1ba88e5_170907_220547") {
sentera_id
name
latitude
longitude
crop_season_years
}
}
{
"data": {
"field": {
"sentera_id": "zx0tsts_AS_SHORT1_CV_test_1ba88e5_170907_220547",
"name": "Field 5524",
"latitude": 45.0,
"longitude": -93.4,
"crop_season_years": [
2019
]
}
}
}
Field with filtered Crop Seasons and Field Activities
Retrieve a field, its seasons and activities with the ability to filter seasons by crop type and activities by activity type.
Try this example in GraphiQLquery FieldBySenteraIDWithFieldActivities{
field(sentera_id: "zx0tsts_AS_SHORT1_CV_test_1ba88e5_170907_220547") {
sentera_id
name
latitude
longitude
crop_seasons(crop_type: CORN) {
sentera_id
name
crop_type
started_at
ended_at
field_activities(activity_type: KERNEL_COUNT) {
sentera_id
__typename
application_area(unit_system: METRIC) {
value
unit
}
... on KernelCountActivity {
kernel_counts {
longitude
latitude
}
}
}
}
}
}
{
"data": {
"field": {
"sentera_id": "zx0tsts_AS_SHORT1_CV_test_1ba88e5_170907_220547",
"name": "Field 5524",
"latitude": 45.0,
"longitude": -93.4,
"crop_seasons": [
{
"sentera_id": "mhf5wfk_CS_SHORT2_CV_test_69b92f355_200203_165314",
"name": "2019",
"crop_type": "CORN",
"started_at": "2019-05-03T16:55:34Z",
"ended_at": null,
"field_activities": [
{
"sentera_id": "aa4txk2_FA_SHORT2_CV_test_69b92f355_200203_165315",
"__typename": "KernelCountActivity",
"application_area": {
"value": 2.02343,
"unit": "HECTARE"
},
"kernel_counts": [
{
"longitude": 18.02,
"latitude": 45.002,
"ears": [
{
"rows": 5,
"kernels_per_row": 20
}
]
}
]
}
]
}
]
}
}
}
Feature Sets for a field
Retrieve feature sets for a field. These will usually be flight plans.
Try this example in GraphiQLquery FieldWithFeatureSets {
field(sentera_id: "xo0ajeg_AS_SHORT1_CV_test_946a0e3e4_201102_102847") {
feature_sets {
total_count
results {
sentera_id
type
}
}
}
}
{
"data": {
"field": {
"feature_sets": {
"total_count": 1,
"results": [
{
"sentera_id": "bcdnct8_FS_SHORT1_CV_test_946a0e3e4_201102_102644",
"type": "UNKNOWN"
}
]
}
}
}
}