GeoPard Tutorials
Ask or search…
⌃K

1. Subscription: Get Events

Follow Subscriptions when INSERT/MODIFY/REMOVE actions happen with "Farm", "Field", "FieldSatelliteImage", "RasterAnalysisMap", "VectorAnalysisMap", other entities.
The Subscription mechanism is built on top of MQTT and WebSocket. Our recommendation is to start integration by reading the AWS AppSync Subscription article.
Subscription events are sent as soon as the event happened in the GeoPard backend.
Every subscription event has a unique identification named uuid, which is useful to filter processed and missed events requested from 82. Query: Restore Subscription Events.
1
subscription FollowPlatformEvent {
2
followPlatformEvent(userUuid: "<placeholder_of_user_uuid>") {
3
uuid
4
userUuid
5
action
6
nodePath {
7
entity
8
uuid
9
}
10
}
11
}