Skip to content

geofenceIntersections

Query

Find intersections for a geofence based on a set of filters.

Response

Returns GeofenceIntersectionConnection

Arguments

NameTypeDescription
filterFilterGeofenceIntersectionInput!

Filter geofence intersections based on the geofence id, time period, etc.

firstInt!

Returns the first n elements from the list.

Default: 20

afterString

Returns the elements in the list that come after the specified cursor.

sort[GeofenceIntersectionsSort!]!

The field and direction by which to sort the results

Default: [{ field: START_TIME, direction: ASC }, { field: ID, direction: ASC }]

Example

query geofenceIntersections(
$filter: FilterGeofenceIntersectionInput!,
$first: Int!,
$after: String,
$sort: [GeofenceIntersectionsSort!]!
) {
geofenceIntersections(
filter: $filter,
first: $first,
after: $after,
sort: $sort
) {
pageInfo {
hasNextPage
hasPreviousPage
startCursor
endCursor
}
edges {
node {
id
startTime
endTime
}
cursor
}
totalCount
}
}